You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
error: encountered mutable pointer in final value of static
8
-
--> $DIR/static-no-inner-mut.rs:10:1
16
+
--> $DIR/static-no-inner-mut.rs:13:1
9
17
|
10
18
LL | static REFMUT: &mut i32 = &mut 0;
11
19
| ^^^^^^^^^^^^^^^^^^^^^^^
20
+
|
21
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
12
23
13
-
error: encountered mutable pointer in final value of static
24
+
error[E0080]: it is undefined behavior to use this value
14
25
--> $DIR/static-no-inner-mut.rs:13:1
15
26
|
27
+
LL | static REFMUT: &mut i32 = &mut 0;
28
+
| ^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
29
+
|
30
+
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
31
+
= note: the raw bytes of the constant (size: 4, align: 4) {
32
+
╾ALLOC0╼ │ ╾──╼
33
+
}
34
+
35
+
error: encountered mutable pointer in final value of static
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
42
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
18
43
19
44
error: encountered mutable pointer in final value of static
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
51
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
52
+
53
+
error[E0080]: it is undefined behavior to use this value
| ^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered mutable reference or box pointing to read-only memory
58
+
|
59
+
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
60
+
= note: the raw bytes of the constant (size: 4, align: 4) {
61
+
╾ALLOC1╼ │ ╾──╼
62
+
}
24
63
25
64
error: encountered mutable pointer in final value of static
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
71
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
30
72
31
73
error: encountered mutable pointer in final value of static
32
-
--> $DIR/static-no-inner-mut.rs:31:1
74
+
--> $DIR/static-no-inner-mut.rs:45:1
33
75
|
34
76
LL | static RAW_MUT_CAST: SyncPtr<i32> = SyncPtr { x : &mut 42 as *mut _ as *const _ };
35
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
+
|
79
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
80
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
36
81
37
82
error: encountered mutable pointer in final value of static
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
89
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
42
90
43
91
warning: skipping const checks
44
92
|
@@ -48,35 +96,141 @@ help: skipping check that does not even have a feature gate
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
140
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
error: encountered mutable pointer in final value of static
149
+
--> $DIR/static-no-inner-mut.rs:13:1
150
+
|
151
+
LL | static REFMUT: &mut i32 = &mut 0;
152
+
| ^^^^^^^^^^^^^^^^^^^^^^^
153
+
|
154
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
155
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
170
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
185
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
200
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
error: encountered mutable pointer in final value of static
209
+
--> $DIR/static-no-inner-mut.rs:45:1
210
+
|
211
+
LL | static RAW_MUT_CAST: SyncPtr<i32> = SyncPtr { x : &mut 42 as *mut _ as *const _ };
212
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
213
+
|
214
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
215
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
230
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
0 commit comments