Useless suggestion for macro expansion starting with ;
used in expression position
#109237
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
or perhaps
Rationale and extra context
The bad help isn't related to the choice of
m!(...)
orm!{...}
(even though the former needs to be followed by;
to be a statement and the latter doesn't, which could explain the source of the hint);m!{...}
also generates the help to add;
.[rustexplorer]
Other cases
No response
Anything else?
@rustbot modify labels +D-incorrect
The text was updated successfully, but these errors were encountered: