@@ -4,7 +4,7 @@ error: cross-crate traits with a default impl, like `Send`, should not be specia
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!
7
+ = warning: has potentially surprising behavior
8
8
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
9
9
= note: `&T` is not a generic parameter
10
10
note: try using the same sequence of generic parameters as the struct definition
@@ -24,7 +24,7 @@ error: cross-crate traits with a default impl, like `Send`, should not be specia
24
24
LL | unsafe impl Send for ContainsVec<i32> {}
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
26
|
27
- = warning: this will change its meaning in a future release!
27
+ = warning: has potentially surprising behavior
28
28
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
29
29
= note: `i32` is not a generic parameter
30
30
note: try using the same sequence of generic parameters as the struct definition
@@ -39,7 +39,7 @@ error: cross-crate traits with a default impl, like `Send`, should not be specia
39
39
LL | unsafe impl<T: Send> Send for TwoParamsSame<T, T> {}
40
40
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41
41
|
42
- = warning: this will change its meaning in a future release!
42
+ = warning: has potentially surprising behavior
43
43
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
44
44
= note: `T` is mentioned multiple times
45
45
note: try using the same sequence of generic parameters as the struct definition
@@ -54,7 +54,7 @@ error: cross-crate traits with a default impl, like `Send`, should not be specia
54
54
LL | unsafe impl<T> Send for WithPhantomDataSend<*const T, i8> {}
55
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
56
|
57
- = warning: this will change its meaning in a future release!
57
+ = warning: has potentially surprising behavior
58
58
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
59
59
= note: `*const T` is not a generic parameter
60
60
note: try using the same sequence of generic parameters as the struct definition
@@ -69,7 +69,7 @@ error: cross-crate traits with a default impl, like `Sync`, should not be specia
69
69
LL | unsafe impl<T> Sync for WithLifetime<'static, Vec<T>> {}
70
70
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
71
|
72
- = warning: this will change its meaning in a future release!
72
+ = warning: has potentially surprising behavior
73
73
= note: for more information, see issue #93367 <https://github.com/rust-lang/rust/issues/93367>
74
74
= note: `Vec<T>` is not a generic parameter
75
75
note: try using the same sequence of generic parameters as the struct definition
0 commit comments