|
| 1 | +error: cross-crate traits with a default impl, like `Send`, should not be specialized |
| 2 | + --> $DIR/suspicious-negative-impls-lint.rs:7:1 |
| 3 | + | |
| 4 | +LL | impl !Send for ContainsVec<u32> {} |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 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 | + = note: `u32` is not a generic parameter |
| 10 | +note: try using the same sequence of generic parameters as the struct definition |
| 11 | + --> $DIR/suspicious-negative-impls-lint.rs:6:1 |
| 12 | + | |
| 13 | +LL | struct ContainsVec<T>(Vec<T>); |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 15 | +note: the lint level is defined here |
| 16 | + --> $DIR/suspicious-negative-impls-lint.rs:2:9 |
| 17 | + | |
| 18 | +LL | #![deny(suspicious_auto_trait_impls)] |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + |
| 21 | +error: cross-crate traits with a default impl, like `Send`, should not be specialized |
| 22 | + --> $DIR/suspicious-negative-impls-lint.rs:12:1 |
| 23 | + | |
| 24 | +LL | impl<T> !Send for WithPhantomDataSend<*const T, u8> {} |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 | + | |
| 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 | + = note: `*const T` is not a generic parameter |
| 30 | +note: try using the same sequence of generic parameters as the struct definition |
| 31 | + --> $DIR/suspicious-negative-impls-lint.rs:11:1 |
| 32 | + | |
| 33 | +LL | pub struct WithPhantomDataSend<T, U>(PhantomData<T>, U); |
| 34 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 35 | + |
| 36 | +error: cross-crate traits with a default impl, like `Sync`, should not be specialized |
| 37 | + --> $DIR/suspicious-negative-impls-lint.rs:17:1 |
| 38 | + | |
| 39 | +LL | impl<T> !Sync for WithLifetime<'static, Option<T>> {} |
| 40 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 41 | + | |
| 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 | + = note: `Option<T>` is not a generic parameter |
| 45 | +note: try using the same sequence of generic parameters as the struct definition |
| 46 | + --> $DIR/suspicious-negative-impls-lint.rs:16:1 |
| 47 | + | |
| 48 | +LL | pub struct WithLifetime<'a, T>(&'a (), T); |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | + |
| 51 | +error: aborting due to 3 previous errors |
| 52 | + |
0 commit comments