keyword_idents_2024 should not warn on raw lifetimes #130486
Labels
A-edition-2024
Area: The 2024 edition
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: No warning
Instead, this happened: Received a warning:
The lint should not warn on raw lifetimes/labels because of the way the edition migration works.
cargo fix --edition
will modify the source to have a raw lifetime, and then run the compiler again which will emit another warning which will likely be confusing.Compare this to keyword_idents_2018:
which does not generate a warning.
cc @compiler-errors
Meta
The text was updated successfully, but these errors were encountered: