-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
allow attaching strings to assert messages #2761
Copy link
Copy link
Closed
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-syntaxextArea: Syntax extensionsArea: Syntax extensionsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Metadata
Metadata
Assignees
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-syntaxextArea: Syntax extensionsArea: Syntax extensionsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
A great C idiom is:
In rust, I keep writing:
I'd be pretty happy with an #assert macro that took a condition and a failure message and generated appropriate code (easy), or perhaps changing the grammar of assert itself (less feasible).