You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/ui-nightly/invalid-impls/invalid-impls.stderr
+5-5
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ note: required by a bound in `_::Subtrait`
21
21
26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
22
22
| --------------------------------------------- in this macro invocation
23
23
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
24
-
help: consider restricting type parameter `T`
24
+
help: consider restricting type parameter `T` with trait `TryFromBytes`
25
25
|
26
26
26 | impl_or_verify!(T: zerocopy::TryFromBytes => TryFromBytes for Foo<T>);
27
27
| ++++++++++++++++++++++++
@@ -49,7 +49,7 @@ note: required by a bound in `_::Subtrait`
49
49
27 | impl_or_verify!(T => FromZeros for Foo<T>);
50
50
| ------------------------------------------ in this macro invocation
51
51
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
52
-
help: consider restricting type parameter `T`
52
+
help: consider restricting type parameter `T` with trait `FromZeros`
53
53
|
54
54
27 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
55
55
| +++++++++++++++++++++
@@ -77,7 +77,7 @@ note: required by a bound in `_::Subtrait`
77
77
28 | impl_or_verify!(T => FromBytes for Foo<T>);
78
78
| ------------------------------------------ in this macro invocation
79
79
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
80
-
help: consider restricting type parameter `T`
80
+
help: consider restricting type parameter `T` with trait `FromBytes`
81
81
|
82
82
28 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
83
83
| +++++++++++++++++++++
@@ -105,7 +105,7 @@ note: required by a bound in `_::Subtrait`
105
105
29 | impl_or_verify!(T => IntoBytes for Foo<T>);
106
106
| ------------------------------------------ in this macro invocation
107
107
= note: this error originates in the derive macro `IntoBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
108
-
help: consider restricting type parameter `T`
108
+
help: consider restricting type parameter `T` with trait `IntoBytes`
109
109
|
110
110
29 | impl_or_verify!(T: zerocopy::IntoBytes => IntoBytes for Foo<T>);
111
111
| +++++++++++++++++++++
@@ -133,7 +133,7 @@ note: required by a bound in `_::Subtrait`
133
133
30 | impl_or_verify!(T => Unaligned for Foo<T>);
134
134
| ------------------------------------------ in this macro invocation
135
135
= note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
136
-
help: consider restricting type parameter `T`
136
+
help: consider restricting type parameter `T` with trait `Unaligned`
137
137
|
138
138
30 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
55
55
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
24
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
23
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
24
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
25
25
= help: specify the types explicitly
26
26
note: in edition 2024, the requirement `!: FromBytes` will fail
= warning: this will change its meaning in a future release!
46
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
40
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
41
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
47
42
= help: specify the type explicitly
48
43
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
49
44
= note: this warning originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
152
152
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardexpand all lines: tests/ui-nightly/transmute-mut-src-immutable.stderr
+4-9
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,8 @@ warning: this function depends on never type fallback being `()`
16
16
15 | fn ref_src_immutable() {
17
17
| ^^^^^^^^^^^^^^^^^^^^^^
18
18
|
19
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
20
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
19
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
20
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
21
21
= help: specify the types explicitly
22
22
note: in edition 2024, the requirement `!: FromBytes` will fail
= warning: this will change its meaning in a future release!
42
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
36
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
37
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
43
38
= help: specify the type explicitly
44
39
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
45
40
= note: this warning originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
24
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
23
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
24
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
25
25
= help: specify the types explicitly
26
26
note: in edition 2024, the requirement `!: FromBytes` will fail
= warning: this will change its meaning in a future release!
46
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
40
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
41
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
47
42
= help: specify the type explicitly
48
43
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
49
44
= note: this warning originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
55
55
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
87
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
86
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
87
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
88
88
= help: specify the types explicitly
89
89
note: in edition 2024, the requirement `!: IntoBytes` will fail
= warning: this will change its meaning in a future release!
109
-
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
103
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
104
+
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/never-type-fallback.html>
110
105
= help: specify the type explicitly
111
106
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
112
107
= note: this warning originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -117,7 +112,7 @@ warning: never type fallback affects this call to an `unsafe` function
| ^^^ required by the implicit `Sized` requirement on this type parameter in `transmute`
152
152
= note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments