-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)P-mediumMedium priorityMedium priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
I didn't find any duplicate issue, but this problem has probably been there for a long time.
- The code
panic!("{}", 7)
compiles and printsthread <main> panicked at "7", ...
- The code
panic!("{} {}", 7)
doesn't compile as an argument is missing - The code
panic!("{}")
does compile and printsthread <main> panicked at "{}", ...
The last one doesn't detect potential mistakes, and is inconsistent with println!("{}")
which doesn't compile.
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)P-mediumMedium priorityMedium priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.