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
| ^^^ 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)
56
56
57
57
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
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
24
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
25
25
= help: specify the types explicitly
26
26
note: in edition 2024, the requirement `!: FromBytes` will fail
@@ -30,14 +30,19 @@ note: in edition 2024, the requirement `!: FromBytes` will fail
30
30
| ^^^^^^^^^^^^^^^^^^^^^^
31
31
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
32
32
= note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
33
+
help: use `()` annotations to avoid fallback changes
34
+
--> src/macros.rs
35
+
|
36
+
| let e: &mut () = $e;
37
+
| ~~
33
38
34
39
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_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
153
153
154
154
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
Copy file name to clipboardExpand all lines: tests/ui-stable/transmute-mut-src-immutable.stderr
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ 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!
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
20
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
21
21
= help: specify the types explicitly
22
22
note: in edition 2024, the requirement `!: FromBytes` will fail
@@ -26,14 +26,19 @@ note: in edition 2024, the requirement `!: FromBytes` will fail
26
26
| ^^^^^^^^^^^^^^^^^^^^
27
27
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
28
28
= note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
29
+
help: use `()` annotations to avoid fallback changes
30
+
--> src/macros.rs
31
+
|
32
+
| let e: &mut () = $e;
33
+
| ~~
29
34
30
35
warning: never type fallback affects this call to an `unsafe` function
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
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
24
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
25
25
= help: specify the types explicitly
26
26
note: in edition 2024, the requirement `!: FromBytes` will fail
@@ -30,14 +30,19 @@ note: in edition 2024, the requirement `!: FromBytes` will fail
30
30
| ^^^^^^^^^^^^^^^^^^^^^^
31
31
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
32
32
= note: this warning originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
33
+
help: use `()` annotations to avoid fallback changes
34
+
--> src/macros.rs
35
+
|
36
+
| let e: &mut () = $e;
37
+
| ~~
33
38
34
39
warning: never type fallback affects this call to an `unsafe` function
| ^^^ 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)
56
56
57
57
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
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
87
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
88
88
= help: specify the types explicitly
89
89
note: in edition 2024, the requirement `!: IntoBytes` will fail
@@ -93,14 +93,19 @@ note: in edition 2024, the requirement `!: IntoBytes` will fail
93
93
| ^^^^^^^^^^^^^^^^^^^^^^
94
94
= note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
95
95
= note: this warning originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
96
+
help: use `()` annotations to avoid fallback changes
97
+
--> src/macros.rs
98
+
|
99
+
| let e: &() = $e;
100
+
| ~~
96
101
97
102
warning: never type fallback affects this call to an `unsafe` function
0 commit comments