@@ -27,37 +27,37 @@ help: use `addr_of!` instead to create a raw pointer
2727LL | let xrb = addr_of!(XB);
2828 | ~~~~~~~~~~~~
2929
30- error[E0133]: use of mutable static is unsafe and requires unsafe function or block
30+ error[E0133]: use of extern static is unsafe and requires unsafe function or block
3131 --> $DIR/safe-extern-statics-mut.rs:11:13
3232 |
3333LL | let b = B;
34- | ^ use of mutable static
34+ | ^ use of extern static
3535 |
36- = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
36+ = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
3737
38- error[E0133]: use of mutable static is unsafe and requires unsafe function or block
38+ error[E0133]: use of extern static is unsafe and requires unsafe function or block
3939 --> $DIR/safe-extern-statics-mut.rs:12:15
4040 |
4141LL | let rb = &B;
42- | ^ use of mutable static
42+ | ^ use of extern static
4343 |
44- = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
44+ = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
4545
46- error[E0133]: use of mutable static is unsafe and requires unsafe function or block
46+ error[E0133]: use of extern static is unsafe and requires unsafe function or block
4747 --> $DIR/safe-extern-statics-mut.rs:14:14
4848 |
4949LL | let xb = XB;
50- | ^^ use of mutable static
50+ | ^^ use of extern static
5151 |
52- = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
52+ = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
5353
54- error[E0133]: use of mutable static is unsafe and requires unsafe function or block
54+ error[E0133]: use of extern static is unsafe and requires unsafe function or block
5555 --> $DIR/safe-extern-statics-mut.rs:15:16
5656 |
5757LL | let xrb = &XB;
58- | ^^ use of mutable static
58+ | ^^ use of extern static
5959 |
60- = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
60+ = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
6161
6262error: aborting due to 4 previous errors; 2 warnings emitted
6363
0 commit comments