assert_once_ever!() macro #7748
Labels
A-concurrency
Area: Concurrency
A-syntaxext
Area: Syntax extensions
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Some places in the task code are commented with "only one task should ever do this". Now that we have unsafe global variables, we can implement a safe convenience macro that can assert this at runtime instead of at comment-time.
It should expand to something like:
The text was updated successfully, but these errors were encountered: