@@ -4,82 +4,102 @@ warning: never type fallback affects this call to an `unsafe` function
4
4
LL | unsafe { mem::zeroed() }
5
5
| ^^^^^^^^^^^^^
6
6
|
7
+ = warning: this will change its meaning in a future release!
8
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
7
9
= help: specify the type explicitly
8
10
= note: `#[warn(never_type_fallback_flowing_into_unsafe)]` on by default
9
11
10
12
warning: never type fallback affects this call to an `unsafe` function
11
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:22 :13
13
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:23 :13
12
14
|
13
15
LL | core::mem::transmute(Zst)
14
16
| ^^^^^^^^^^^^^^^^^^^^^^^^^
15
17
|
18
+ = warning: this will change its meaning in a future release!
19
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
16
20
= help: specify the type explicitly
17
21
18
22
warning: never type fallback affects this union access
19
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:37 :18
23
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:39 :18
20
24
|
21
25
LL | unsafe { Union { a: () }.b }
22
26
| ^^^^^^^^^^^^^^^^^
23
27
|
28
+ = warning: this will change its meaning in a future release!
29
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
24
30
= help: specify the type explicitly
25
31
26
32
warning: never type fallback affects this raw pointer dereference
27
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:46 :18
33
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:49 :18
28
34
|
29
35
LL | unsafe { *ptr::from_ref(&()).cast() }
30
36
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
31
37
|
38
+ = warning: this will change its meaning in a future release!
39
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
32
40
= help: specify the type explicitly
33
41
34
42
warning: never type fallback affects this call to an `unsafe` function
35
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:63 :18
43
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:67 :18
36
44
|
37
45
LL | unsafe { internally_create(x) }
38
46
| ^^^^^^^^^^^^^^^^^^^^
39
47
|
48
+ = warning: this will change its meaning in a future release!
49
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
40
50
= help: specify the type explicitly
41
51
42
52
warning: never type fallback affects this call to an `unsafe` function
43
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:77 :18
53
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:83 :18
44
54
|
45
55
LL | unsafe { zeroed() }
46
56
| ^^^^^^^^
47
57
|
58
+ = warning: this will change its meaning in a future release!
59
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
48
60
= help: specify the type explicitly
49
61
50
62
warning: never type fallback affects this `unsafe` function
51
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:74 :22
63
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:79 :22
52
64
|
53
65
LL | let zeroed = mem::zeroed;
54
66
| ^^^^^^^^^^^
55
67
|
68
+ = warning: this will change its meaning in a future release!
69
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
56
70
= help: specify the type explicitly
57
71
58
72
warning: never type fallback affects this `unsafe` function
59
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:91 :17
73
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:98 :17
60
74
|
61
75
LL | let f = internally_create;
62
76
| ^^^^^^^^^^^^^^^^^
63
77
|
78
+ = warning: this will change its meaning in a future release!
79
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
64
80
= help: specify the type explicitly
65
81
66
82
warning: never type fallback affects this call to an `unsafe` method
67
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:114 :13
83
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:122 :13
68
84
|
69
85
LL | S(marker::PhantomData).create_out_of_thin_air()
70
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
87
|
88
+ = warning: this will change its meaning in a future release!
89
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
72
90
= help: specify the type explicitly
73
91
74
92
warning: never type fallback affects this call to an `unsafe` function
75
- --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:130 :19
93
+ --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:139 :19
76
94
|
77
95
LL | match send_message::<_ /* ?0 */>() {
78
96
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
79
97
...
80
98
LL | msg_send!();
81
99
| ----------- in this macro invocation
82
100
|
101
+ = warning: this will change its meaning in a future release!
102
+ = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
83
103
= help: specify the type explicitly
84
104
= note: this warning originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)
85
105
0 commit comments