@@ -27,37 +27,37 @@ help: use `addr_of!` instead to create a raw pointer
27
27
LL | let xrb = addr_of!(XB);
28
28
| ~~~~~~~~~~~~
29
29
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
31
31
--> $DIR/safe-extern-statics-mut.rs:11:13
32
32
|
33
33
LL | let b = B;
34
- | ^ use of mutable static
34
+ | ^ use of extern static
35
35
|
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
37
37
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
39
39
--> $DIR/safe-extern-statics-mut.rs:12:15
40
40
|
41
41
LL | let rb = &B;
42
- | ^ use of mutable static
42
+ | ^ use of extern static
43
43
|
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
45
45
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
47
47
--> $DIR/safe-extern-statics-mut.rs:14:14
48
48
|
49
49
LL | let xb = XB;
50
- | ^^ use of mutable static
50
+ | ^^ use of extern static
51
51
|
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
53
53
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
55
55
--> $DIR/safe-extern-statics-mut.rs:15:16
56
56
|
57
57
LL | let xrb = &XB;
58
- | ^^ use of mutable static
58
+ | ^^ use of extern static
59
59
|
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
61
61
62
62
error: aborting due to 4 previous errors; 2 warnings emitted
63
63
0 commit comments