Heisenwarning unused_braces
with tracing
#116347
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
L-unused_braces
Lint: unused_braces
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
No response
Rationale and extra context
I'd expect both
foo
andbar
to either trigger the warning or not, since they differ only in formatting (in fact,bar
is just arustfmt
-edfoo
). Looking just at the suggestion, it seems that not warning is better (since this suggestion is not applicable), but this might be a bug intracing
and not inrustc
.Other cases
No response
Anything else?
Initially found on URLO.
The text was updated successfully, but these errors were encountered: