False positive unused_braces when calling a macro #106545
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=058b224b06eefb23132dda5fad6f2950
The above generates a warning:
That above warning is either
rustc
functionality or error, because without the braces it produces a (confusing) error. The same example code adjusted:Limited playground (I don't see a way to pass
-Z macro-backtrace
to the playground):https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=8b334f459ac48f56639de94f116a7705
The current output (with
nightly
invoked withRUSTFLAGS="-Z macro-backtrace" cargo build
) is:Thank you in advance for any progress.
The text was updated successfully, but these errors were encountered: