fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: use of extern static is unsafe and requires unsafe function or block (error E0133) 2 --> $DIR/safe-extern-statics.rs:13:13 3 | 4LL | let a = A; 5 | ^ 6 | 7 = note: `#[deny(safe_extern_statics)]` on by default 8 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 9 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247> 10 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior 11 12error: use of extern static is unsafe and requires unsafe function or block (error E0133) 13 --> $DIR/safe-extern-statics.rs:15:14 14 | 15LL | let ra = &A; 16 | ^^ 17 | 18 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 19 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247> 20 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior 21 22error: use of extern static is unsafe and requires unsafe function or block (error E0133) 23 --> $DIR/safe-extern-statics.rs:17:14 24 | 25LL | let xa = XA; 26 | ^^ 27 | 28 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 29 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247> 30 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior 31 32error: use of extern static is unsafe and requires unsafe function or block (error E0133) 33 --> $DIR/safe-extern-statics.rs:19:15 34 | 35LL | let xra = &XA; 36 | ^^^ 37 | 38 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 39 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247> 40 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior 41 42error: aborting due to 4 previous errors 43