|  | 
| 1 | 1 | error: cross-crate traits with a default impl, like `Send`, should not be specialized | 
| 2 |  | -  --> $DIR/suspicious-impls-lint.rs:9:1 | 
|  | 2 | +  --> $DIR/suspicious-impls-lint.rs:7:1 | 
| 3 | 3 |    | | 
| 4 | 4 | LL | unsafe impl<T: Send> Send for MayImplementSendErr<&T> {} | 
| 5 | 5 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 6 | 6 |    | | 
| 7 |  | -   = warning: this will change its meaning in a future release! | 
| 8 |  | -   = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367> | 
| 9 | 7 |    = note: `&T` is not a generic parameter | 
| 10 | 8 | note: try using the same sequence of generic parameters as the struct definition | 
| 11 |  | -  --> $DIR/suspicious-impls-lint.rs:8:1 | 
|  | 9 | +  --> $DIR/suspicious-impls-lint.rs:6:1 | 
| 12 | 10 |    | | 
| 13 | 11 | LL | struct MayImplementSendErr<T>(T); | 
| 14 | 12 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 15 |  | -note: the lint level is defined here | 
| 16 |  | -  --> $DIR/suspicious-impls-lint.rs:1:9 | 
| 17 |  | -   | | 
| 18 |  | -LL | #![deny(suspicious_auto_trait_impls)] | 
| 19 |  | -   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 20 | 13 | 
 | 
| 21 | 14 | error: cross-crate traits with a default impl, like `Send`, should not be specialized | 
| 22 |  | -  --> $DIR/suspicious-impls-lint.rs:21:1 | 
|  | 15 | +  --> $DIR/suspicious-impls-lint.rs:18:1 | 
| 23 | 16 |    | | 
| 24 | 17 | LL | unsafe impl Send for ContainsVec<i32> {} | 
| 25 | 18 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 26 | 19 |    | | 
| 27 |  | -   = warning: this will change its meaning in a future release! | 
| 28 |  | -   = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367> | 
| 29 | 20 |    = note: `i32` is not a generic parameter | 
| 30 | 21 | note: try using the same sequence of generic parameters as the struct definition | 
| 31 |  | -  --> $DIR/suspicious-impls-lint.rs:20:1 | 
|  | 22 | +  --> $DIR/suspicious-impls-lint.rs:17:1 | 
| 32 | 23 |    | | 
| 33 | 24 | LL | struct ContainsVec<T>(Vec<T>); | 
| 34 | 25 |    | ^^^^^^^^^^^^^^^^^^^^^ | 
| 35 | 26 | 
 | 
| 36 | 27 | error: cross-crate traits with a default impl, like `Send`, should not be specialized | 
| 37 |  | -  --> $DIR/suspicious-impls-lint.rs:32:1 | 
|  | 28 | +  --> $DIR/suspicious-impls-lint.rs:28:1 | 
| 38 | 29 |    | | 
| 39 | 30 | LL | unsafe impl<T: Send> Send for TwoParamsSame<T, T> {} | 
| 40 | 31 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 41 | 32 |    | | 
| 42 |  | -   = warning: this will change its meaning in a future release! | 
| 43 |  | -   = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367> | 
| 44 | 33 |    = note: `T` is mentioned multiple times | 
| 45 | 34 | note: try using the same sequence of generic parameters as the struct definition | 
| 46 |  | -  --> $DIR/suspicious-impls-lint.rs:31:1 | 
|  | 35 | +  --> $DIR/suspicious-impls-lint.rs:27:1 | 
| 47 | 36 |    | | 
| 48 | 37 | LL | struct TwoParamsSame<T, U>(T, U); | 
| 49 | 38 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 50 | 39 | 
 | 
| 51 | 40 | error: cross-crate traits with a default impl, like `Send`, should not be specialized | 
| 52 |  | -  --> $DIR/suspicious-impls-lint.rs:40:1 | 
|  | 41 | +  --> $DIR/suspicious-impls-lint.rs:35:1 | 
| 53 | 42 |    | | 
| 54 | 43 | LL | unsafe impl<T> Send for WithPhantomDataSend<*const T, i8> {} | 
| 55 | 44 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 56 | 45 |    | | 
| 57 |  | -   = warning: this will change its meaning in a future release! | 
| 58 |  | -   = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367> | 
| 59 | 46 |    = note: `*const T` is not a generic parameter | 
| 60 | 47 | note: try using the same sequence of generic parameters as the struct definition | 
| 61 |  | -  --> $DIR/suspicious-impls-lint.rs:39:1 | 
|  | 48 | +  --> $DIR/suspicious-impls-lint.rs:34:1 | 
| 62 | 49 |    | | 
| 63 | 50 | LL | pub struct WithPhantomDataSend<T, U>(PhantomData<T>, U); | 
| 64 | 51 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 65 | 52 | 
 | 
| 66 | 53 | error: cross-crate traits with a default impl, like `Sync`, should not be specialized | 
| 67 |  | -  --> $DIR/suspicious-impls-lint.rs:46:1 | 
|  | 54 | +  --> $DIR/suspicious-impls-lint.rs:40:1 | 
| 68 | 55 |    | | 
| 69 | 56 | LL | unsafe impl<T> Sync for WithLifetime<'static, Vec<T>> {} | 
| 70 | 57 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
| 71 | 58 |    | | 
| 72 |  | -   = warning: this will change its meaning in a future release! | 
| 73 |  | -   = note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367> | 
| 74 | 59 |    = note: `Vec<T>` is not a generic parameter | 
| 75 | 60 | note: try using the same sequence of generic parameters as the struct definition | 
| 76 |  | -  --> $DIR/suspicious-impls-lint.rs:44:1 | 
|  | 61 | +  --> $DIR/suspicious-impls-lint.rs:38:1 | 
| 77 | 62 |    | | 
| 78 | 63 | LL | pub struct WithLifetime<'a, T>(&'a (), T); | 
| 79 | 64 |    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 
0 commit comments