|  | 
|  | 1 | +error: never type fallback affects this call to an `unsafe` function | 
|  | 2 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:13:18 | 
|  | 3 | +   | | 
|  | 4 | +LL |         unsafe { mem::zeroed() } | 
|  | 5 | +   |                  ^^^^^^^^^^^^^ | 
|  | 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> | 
|  | 9 | +   = help: specify the type explicitly | 
|  | 10 | +   = note: `#[deny(never_type_fallback_flowing_into_unsafe)]` on by default | 
|  | 11 | + | 
|  | 12 | +error: never type fallback affects this call to an `unsafe` function | 
|  | 13 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:30:13 | 
|  | 14 | +   | | 
|  | 15 | +LL |             core::mem::transmute(Zst) | 
|  | 16 | +   |             ^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 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> | 
|  | 20 | +   = help: specify the type explicitly | 
|  | 21 | + | 
|  | 22 | +error: never type fallback affects this union access | 
|  | 23 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:47:18 | 
|  | 24 | +   | | 
|  | 25 | +LL |         unsafe { Union { a: () }.b } | 
|  | 26 | +   |                  ^^^^^^^^^^^^^^^^^ | 
|  | 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> | 
|  | 30 | +   = help: specify the type explicitly | 
|  | 31 | + | 
|  | 32 | +error: never type fallback affects this raw pointer dereference | 
|  | 33 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:58:18 | 
|  | 34 | +   | | 
|  | 35 | +LL |         unsafe { *ptr::from_ref(&()).cast() } | 
|  | 36 | +   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 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> | 
|  | 40 | +   = help: specify the type explicitly | 
|  | 41 | + | 
|  | 42 | +error: never type fallback affects this call to an `unsafe` function | 
|  | 43 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:79:18 | 
|  | 44 | +   | | 
|  | 45 | +LL |         unsafe { internally_create(x) } | 
|  | 46 | +   |                  ^^^^^^^^^^^^^^^^^^^^ | 
|  | 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> | 
|  | 50 | +   = help: specify the type explicitly | 
|  | 51 | + | 
|  | 52 | +error: never type fallback affects this call to an `unsafe` function | 
|  | 53 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:97:18 | 
|  | 54 | +   | | 
|  | 55 | +LL |         unsafe { zeroed() } | 
|  | 56 | +   |                  ^^^^^^^^ | 
|  | 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> | 
|  | 60 | +   = help: specify the type explicitly | 
|  | 61 | + | 
|  | 62 | +error: never type fallback affects this `unsafe` function | 
|  | 63 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:92:22 | 
|  | 64 | +   | | 
|  | 65 | +LL |         let zeroed = mem::zeroed; | 
|  | 66 | +   |                      ^^^^^^^^^^^ | 
|  | 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> | 
|  | 70 | +   = help: specify the type explicitly | 
|  | 71 | + | 
|  | 72 | +error: never type fallback affects this `unsafe` function | 
|  | 73 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:115:17 | 
|  | 74 | +   | | 
|  | 75 | +LL |         let f = internally_create; | 
|  | 76 | +   |                 ^^^^^^^^^^^^^^^^^ | 
|  | 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> | 
|  | 80 | +   = help: specify the type explicitly | 
|  | 81 | + | 
|  | 82 | +error: never type fallback affects this call to an `unsafe` method | 
|  | 83 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:140:13 | 
|  | 84 | +   | | 
|  | 85 | +LL |             S(marker::PhantomData).create_out_of_thin_air() | 
|  | 86 | +   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 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> | 
|  | 90 | +   = help: specify the type explicitly | 
|  | 91 | + | 
|  | 92 | +error: never type fallback affects this call to an `unsafe` function | 
|  | 93 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:158:19 | 
|  | 94 | +   | | 
|  | 95 | +LL |             match send_message::<_ /* ?0 */>() { | 
|  | 96 | +   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 97 | +... | 
|  | 98 | +LL |         msg_send!(); | 
|  | 99 | +   |         ----------- in this macro invocation | 
|  | 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> | 
|  | 103 | +   = help: specify the type explicitly | 
|  | 104 | +   = note: this error originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info) | 
|  | 105 | + | 
|  | 106 | +warning: the type `!` does not permit zero-initialization | 
|  | 107 | +  --> $DIR/lint-never-type-fallback-flowing-into-unsafe.rs:13:18 | 
|  | 108 | +   | | 
|  | 109 | +LL |         unsafe { mem::zeroed() } | 
|  | 110 | +   |                  ^^^^^^^^^^^^^ this code causes undefined behavior when executed | 
|  | 111 | +   | | 
|  | 112 | +   = note: the `!` type has no valid value | 
|  | 113 | +   = note: `#[warn(invalid_value)]` on by default | 
|  | 114 | + | 
|  | 115 | +error: aborting due to 10 previous errors; 1 warning emitted | 
|  | 116 | + | 
0 commit comments