@@ -2967,13 +2967,13 @@ declare_lint_pass! {
2967
2967
MISSING_ABI ,
2968
2968
INVALID_DOC_ATTRIBUTES ,
2969
2969
SEMICOLON_IN_EXPRESSIONS_FROM_MACROS ,
2970
- DISJOINT_CAPTURE_MIGRATION ,
2970
+ RUST_2021_INCOMPATIBLE_CLOSURE_CAPTURES ,
2971
2971
LEGACY_DERIVE_HELPERS ,
2972
2972
PROC_MACRO_BACK_COMPAT ,
2973
- OR_PATTERNS_BACK_COMPAT ,
2973
+ RUST_2021_INCOMPATIBLE_OR_PATTERNS ,
2974
2974
LARGE_ASSIGNMENTS ,
2975
- FUTURE_PRELUDE_COLLISION ,
2976
- RESERVED_PREFIX ,
2975
+ RUST_2021_PRELUDE_COLLISIONS ,
2976
+ RUST_2021_PREFIXES_INCOMPATIBLE_SYNTAX ,
2977
2977
UNSUPPORTED_CALLING_CONVENTIONS ,
2978
2978
]
2979
2979
}
@@ -3002,7 +3002,7 @@ declare_lint! {
3002
3002
}
3003
3003
3004
3004
declare_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
3006
3006
/// captured in Rust 2021 and affect the Drop order of at least one path starting at this variable.
3007
3007
/// It can also detect when a variable implements a trait, but one of its field does not and
3008
3008
/// the field is captured by a closure and used with the assumption that said field implements
@@ -3011,7 +3011,7 @@ declare_lint! {
3011
3011
/// ### Example of drop reorder
3012
3012
///
3013
3013
/// ```rust,compile_fail
3014
- /// # #![deny(disjoint_capture_migration )]
3014
+ /// # #![deny(rust_2021_incompatible_closure_captures )]
3015
3015
/// # #![allow(unused)]
3016
3016
/// struct FancyInteger(i32);
3017
3017
///
@@ -3046,7 +3046,7 @@ declare_lint! {
3046
3046
/// ### Example of auto-trait
3047
3047
///
3048
3048
/// ```rust,compile_fail
3049
- /// #![deny(disjoint_capture_migration )]
3049
+ /// #![deny(rust_2021_incompatible_closure_captures )]
3050
3050
/// use std::thread;
3051
3051
///
3052
3052
/// struct Pointer(*mut i32);
@@ -3068,7 +3068,7 @@ declare_lint! {
3068
3068
/// In the above example, only `fptr.0` is captured in Rust 2021.
3069
3069
/// The field is of type *mut i32 which doesn't implement Send, making the code invalid as the
3070
3070
/// field cannot be sent between thread safely.
3071
- pub DISJOINT_CAPTURE_MIGRATION ,
3071
+ pub RUST_2021_INCOMPATIBLE_CLOSURE_CAPTURES ,
3072
3072
Allow ,
3073
3073
"detects closures affected by Rust 2021 changes" ,
3074
3074
@future_incompatible = FutureIncompatibleInfo {
@@ -3183,12 +3183,12 @@ declare_lint! {
3183
3183
}
3184
3184
3185
3185
declare_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.
3187
3187
///
3188
3188
/// ### Example
3189
3189
///
3190
3190
/// ```rust,compile_fail
3191
- /// #![deny(or_patterns_back_compat )]
3191
+ /// #![deny(rust_2021_incompatible_or_patterns )]
3192
3192
/// macro_rules! match_any {
3193
3193
/// ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
3194
3194
/// match $expr {
@@ -3211,7 +3211,7 @@ declare_lint! {
3211
3211
/// ### Explanation
3212
3212
///
3213
3213
/// 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 ,
3215
3215
Allow ,
3216
3216
"detects usage of old versions of or-patterns" ,
3217
3217
@future_incompatible = FutureIncompatibleInfo {
@@ -3221,13 +3221,13 @@ declare_lint! {
3221
3221
}
3222
3222
3223
3223
declare_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
3225
3225
/// with traits added to the prelude in future editions.
3226
3226
///
3227
3227
/// ### Example
3228
3228
///
3229
3229
/// ```rust,compile_fail
3230
- /// #![deny(future_prelude_collision )]
3230
+ /// #![deny(rust_2021_prelude_collisions )]
3231
3231
///
3232
3232
/// trait Foo {
3233
3233
/// fn try_into(self) -> Result<String, !>;
@@ -3259,7 +3259,7 @@ declare_lint! {
3259
3259
/// is called directly on a type.
3260
3260
///
3261
3261
/// [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 ,
3263
3263
Allow ,
3264
3264
"detects the usage of trait methods which are ambiguous with traits added to the \
3265
3265
prelude in future editions",
@@ -3270,13 +3270,13 @@ declare_lint! {
3270
3270
}
3271
3271
3272
3272
declare_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
3274
3274
/// prefix instead in Rust 2021.
3275
3275
///
3276
3276
/// ### Example
3277
3277
///
3278
3278
/// ```rust,compile_fail
3279
- /// #![deny(reserved_prefix )]
3279
+ /// #![deny(rust_2021_prefixes_incompatible_syntax )]
3280
3280
///
3281
3281
/// macro_rules! m {
3282
3282
/// (z $x:expr) => ();
@@ -3295,7 +3295,7 @@ declare_lint! {
3295
3295
///
3296
3296
/// This lint suggests to add whitespace between the `z` and `"hey"` tokens
3297
3297
/// to keep them separated in Rust 2021.
3298
- pub RESERVED_PREFIX ,
3298
+ pub RUST_2021_PREFIXES_INCOMPATIBLE_SYNTAX ,
3299
3299
Allow ,
3300
3300
"identifiers that will be parsed as a prefix in Rust 2021" ,
3301
3301
@future_incompatible = FutureIncompatibleInfo {
0 commit comments