2021 prelude collision lint expands macros when used as an expression #88347
Labels
A-edition-2021
Area: The 2021 edition
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The
rust_2021_prelude_collisions
lint suggestion seems to expand the expression for a macro, but I don't think it should. The following:The suggestion recommends replacing it with:
which will not compile. I would expect it to suggest:
Found during the crater run for:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: