rustc shows expanded writeln!
macro in code suggestion
#112007
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
It might be better still if it suggest adding
?;
in the second branch, same as in the first. Or even a single?;
for the whole if-else, but whatever it suggests it probably shouldn't output the macro internals.Other cases
If you leave off the
Ok(())
at the end, it will warn you of the extra;?
in the first branch, as expected, instead.Anything else?
No response
The text was updated successfully, but these errors were encountered: