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/never_type/lint-never-type-fallback-flowing-into-unsafe.e2015.stderr
+10-10
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ warning: never type fallback affects this call to an `unsafe` function
4
4
LL | unsafe { mem::zeroed() }
5
5
| ^^^^^^^^^^^^^
6
6
|
7
-
= 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!
7
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
8
8
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
9
9
= help: specify the type explicitly
10
10
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
@@ -19,7 +19,7 @@ warning: never type fallback affects this call to an `unsafe` function
19
19
LL | core::mem::transmute(Zst)
20
20
| ^^^^^^^^^^^^^^^^^^^^^^^^^
21
21
|
22
-
= 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!
22
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
23
23
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
24
24
= help: specify the type explicitly
25
25
help: use `()` annotations to avoid fallback changes
@@ -33,7 +33,7 @@ warning: never type fallback affects this union access
33
33
LL | unsafe { Union { a: () }.b }
34
34
| ^^^^^^^^^^^^^^^^^
35
35
|
36
-
= 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!
36
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
37
37
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
38
38
= help: specify the type explicitly
39
39
@@ -43,7 +43,7 @@ warning: never type fallback affects this raw pointer dereference
43
43
LL | unsafe { *ptr::from_ref(&()).cast() }
44
44
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
45
45
|
46
-
= 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!
46
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
47
47
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
48
48
= help: specify the type explicitly
49
49
help: use `()` annotations to avoid fallback changes
@@ -57,7 +57,7 @@ warning: never type fallback affects this call to an `unsafe` function
57
57
LL | unsafe { internally_create(x) }
58
58
| ^^^^^^^^^^^^^^^^^^^^
59
59
|
60
-
= 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!
60
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
61
61
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
62
62
= help: specify the type explicitly
63
63
help: use `()` annotations to avoid fallback changes
@@ -71,7 +71,7 @@ warning: never type fallback affects this call to an `unsafe` function
71
71
LL | unsafe { zeroed() }
72
72
| ^^^^^^^^
73
73
|
74
-
= 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!
74
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
75
75
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
76
76
= help: specify the type explicitly
77
77
help: use `()` annotations to avoid fallback changes
@@ -85,7 +85,7 @@ warning: never type fallback affects this `unsafe` function
85
85
LL | let zeroed = mem::zeroed;
86
86
| ^^^^^^^^^^^
87
87
|
88
-
= 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!
88
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
89
89
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
90
90
= help: specify the type explicitly
91
91
help: use `()` annotations to avoid fallback changes
@@ -99,7 +99,7 @@ warning: never type fallback affects this `unsafe` function
99
99
LL | let f = internally_create;
100
100
| ^^^^^^^^^^^^^^^^^
101
101
|
102
-
= 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!
102
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
103
103
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
104
104
= help: specify the type explicitly
105
105
help: use `()` annotations to avoid fallback changes
@@ -113,7 +113,7 @@ warning: never type fallback affects this call to an `unsafe` method
= 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!
116
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
117
117
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
= 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!
129
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
130
130
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
131
131
= help: specify the type explicitly
132
132
= note: this warning originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: tests/ui/never_type/lint-never-type-fallback-flowing-into-unsafe.e2024.stderr
+10-10
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error: never type fallback affects this call to an `unsafe` function
4
4
LL | unsafe { mem::zeroed() }
5
5
| ^^^^^^^^^^^^^
6
6
|
7
-
= 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!
7
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
8
8
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
9
9
= help: specify the type explicitly
10
10
= note: `#[deny(never_type_fallback_flowing_into_unsafe)]` on by default
@@ -19,7 +19,7 @@ error: never type fallback affects this call to an `unsafe` function
19
19
LL | core::mem::transmute(Zst)
20
20
| ^^^^^^^^^^^^^^^^^^^^^^^^^
21
21
|
22
-
= 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!
22
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
23
23
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
24
24
= help: specify the type explicitly
25
25
help: use `()` annotations to avoid fallback changes
@@ -33,7 +33,7 @@ error: never type fallback affects this union access
33
33
LL | unsafe { Union { a: () }.b }
34
34
| ^^^^^^^^^^^^^^^^^
35
35
|
36
-
= 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!
36
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
37
37
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
38
38
= help: specify the type explicitly
39
39
@@ -43,7 +43,7 @@ error: never type fallback affects this raw pointer dereference
43
43
LL | unsafe { *ptr::from_ref(&()).cast() }
44
44
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
45
45
|
46
-
= 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!
46
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
47
47
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
48
48
= help: specify the type explicitly
49
49
help: use `()` annotations to avoid fallback changes
@@ -57,7 +57,7 @@ error: never type fallback affects this call to an `unsafe` function
57
57
LL | unsafe { internally_create(x) }
58
58
| ^^^^^^^^^^^^^^^^^^^^
59
59
|
60
-
= 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!
60
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
61
61
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
62
62
= help: specify the type explicitly
63
63
help: use `()` annotations to avoid fallback changes
@@ -71,7 +71,7 @@ error: never type fallback affects this call to an `unsafe` function
71
71
LL | unsafe { zeroed() }
72
72
| ^^^^^^^^
73
73
|
74
-
= 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!
74
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
75
75
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
76
76
= help: specify the type explicitly
77
77
help: use `()` annotations to avoid fallback changes
@@ -85,7 +85,7 @@ error: never type fallback affects this `unsafe` function
85
85
LL | let zeroed = mem::zeroed;
86
86
| ^^^^^^^^^^^
87
87
|
88
-
= 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!
88
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
89
89
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
90
90
= help: specify the type explicitly
91
91
help: use `()` annotations to avoid fallback changes
@@ -99,7 +99,7 @@ error: never type fallback affects this `unsafe` function
99
99
LL | let f = internally_create;
100
100
| ^^^^^^^^^^^^^^^^^
101
101
|
102
-
= 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!
102
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
103
103
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
104
104
= help: specify the type explicitly
105
105
help: use `()` annotations to avoid fallback changes
@@ -113,7 +113,7 @@ error: never type fallback affects this call to an `unsafe` method
= 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!
116
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
117
117
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
= 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!
129
+
= warning: this changes meaning in Rust 2024 and in a future release in all editions!
130
130
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
131
131
= help: specify the type explicitly
132
132
= note: this error originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments