@@ -2967,13 +2967,13 @@ declare_lint_pass! {
29672967 MISSING_ABI ,
29682968 INVALID_DOC_ATTRIBUTES ,
29692969 SEMICOLON_IN_EXPRESSIONS_FROM_MACROS ,
2970- DISJOINT_CAPTURE_MIGRATION ,
2970+ RUST_2021_INCOMPATIBLE_CLOSURE_CAPTURES ,
29712971 LEGACY_DERIVE_HELPERS ,
29722972 PROC_MACRO_BACK_COMPAT ,
2973- OR_PATTERNS_BACK_COMPAT ,
2973+ RUST_2021_INCOMPATIBLE_OR_PATTERNS ,
29742974 LARGE_ASSIGNMENTS ,
2975- FUTURE_PRELUDE_COLLISION ,
2976- RESERVED_PREFIX ,
2975+ RUST_2021_PRELUDE_COLLISIONS ,
2976+ RUST_2021_PREFIXES_INCOMPATIBLE_SYNTAX ,
29772977 UNSUPPORTED_CALLING_CONVENTIONS ,
29782978 ]
29792979}
@@ -3002,7 +3002,7 @@ declare_lint! {
30023002}
30033003
30043004declare_lint ! {
3005- /// The `disjoint_capture_migration ` lint detects variables that aren't completely
3005+ /// The `rust_2021_incompatible_closure_captures ` lint detects variables that aren't completely
30063006 /// captured in Rust 2021 and affect the Drop order of at least one path starting at this variable.
30073007 /// It can also detect when a variable implements a trait, but one of its field does not and
30083008 /// the field is captured by a closure and used with the assumption that said field implements
@@ -3011,7 +3011,7 @@ declare_lint! {
30113011 /// ### Example of drop reorder
30123012 ///
30133013 /// ```rust,compile_fail
3014- /// # #![deny(disjoint_capture_migration )]
3014+ /// # #![deny(rust_2021_incompatible_closure_captures )]
30153015 /// # #![allow(unused)]
30163016 /// struct FancyInteger(i32);
30173017 ///
@@ -3046,7 +3046,7 @@ declare_lint! {
30463046 /// ### Example of auto-trait
30473047 ///
30483048 /// ```rust,compile_fail
3049- /// #![deny(disjoint_capture_migration )]
3049+ /// #![deny(rust_2021_incompatible_closure_captures )]
30503050 /// use std::thread;
30513051 ///
30523052 /// struct Pointer(*mut i32);
@@ -3068,7 +3068,7 @@ declare_lint! {
30683068 /// In the above example, only `fptr.0` is captured in Rust 2021.
30693069 /// The field is of type *mut i32 which doesn't implement Send, making the code invalid as the
30703070 /// field cannot be sent between thread safely.
3071- pub DISJOINT_CAPTURE_MIGRATION ,
3071+ pub RUST_2021_INCOMPATIBLE_CLOSURE_CAPTURES ,
30723072 Allow ,
30733073 "detects closures affected by Rust 2021 changes" ,
30743074 @future_incompatible = FutureIncompatibleInfo {
@@ -3183,12 +3183,12 @@ declare_lint! {
31833183}
31843184
31853185declare_lint ! {
3186- /// The `or_patterns_back_compat ` lint detects usage of old versions of or-patterns.
3186+ /// The `rust_2021_incompatible_or_patterns ` lint detects usage of old versions of or-patterns.
31873187 ///
31883188 /// ### Example
31893189 ///
31903190 /// ```rust,compile_fail
3191- /// #![deny(or_patterns_back_compat )]
3191+ /// #![deny(rust_2021_incompatible_or_patterns )]
31923192 /// macro_rules! match_any {
31933193 /// ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
31943194 /// match $expr {
@@ -3211,7 +3211,7 @@ declare_lint! {
32113211 /// ### Explanation
32123212 ///
32133213 /// In Rust 2021, the pat matcher will match new patterns, which include the | character.
3214- pub OR_PATTERNS_BACK_COMPAT ,
3214+ pub RUST_2021_INCOMPATIBLE_OR_PATTERNS ,
32153215 Allow ,
32163216 "detects usage of old versions of or-patterns" ,
32173217 @future_incompatible = FutureIncompatibleInfo {
@@ -3221,13 +3221,13 @@ declare_lint! {
32213221}
32223222
32233223declare_lint ! {
3224- /// The `future_prelude_collision ` lint detects the usage of trait methods which are ambiguous
3224+ /// The `rust_2021_prelude_collisions ` lint detects the usage of trait methods which are ambiguous
32253225 /// with traits added to the prelude in future editions.
32263226 ///
32273227 /// ### Example
32283228 ///
32293229 /// ```rust,compile_fail
3230- /// #![deny(future_prelude_collision )]
3230+ /// #![deny(rust_2021_prelude_collisions )]
32313231 ///
32323232 /// trait Foo {
32333233 /// fn try_into(self) -> Result<String, !>;
@@ -3259,7 +3259,7 @@ declare_lint! {
32593259 /// is called directly on a type.
32603260 ///
32613261 /// [prelude changes]: https://blog.rust-lang.org/inside-rust/2021/03/04/planning-rust-2021.html#prelude-changes
3262- pub FUTURE_PRELUDE_COLLISION ,
3262+ pub RUST_2021_PRELUDE_COLLISIONS ,
32633263 Allow ,
32643264 "detects the usage of trait methods which are ambiguous with traits added to the \
32653265 prelude in future editions",
@@ -3270,13 +3270,13 @@ declare_lint! {
32703270}
32713271
32723272declare_lint ! {
3273- /// The `reserved_prefix ` lint detects identifiers that will be parsed as a
3273+ /// The `rust_2021_prefixes_incompatible_syntax ` lint detects identifiers that will be parsed as a
32743274 /// prefix instead in Rust 2021.
32753275 ///
32763276 /// ### Example
32773277 ///
32783278 /// ```rust,compile_fail
3279- /// #![deny(reserved_prefix )]
3279+ /// #![deny(rust_2021_prefixes_incompatible_syntax )]
32803280 ///
32813281 /// macro_rules! m {
32823282 /// (z $x:expr) => ();
@@ -3295,7 +3295,7 @@ declare_lint! {
32953295 ///
32963296 /// This lint suggests to add whitespace between the `z` and `"hey"` tokens
32973297 /// to keep them separated in Rust 2021.
3298- pub RESERVED_PREFIX ,
3298+ pub RUST_2021_PREFIXES_INCOMPATIBLE_SYNTAX ,
32993299 Allow ,
33003300 "identifiers that will be parsed as a prefix in Rust 2021" ,
33013301 @future_incompatible = FutureIncompatibleInfo {
0 commit comments