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
error: encountered mutable pointer in final value of constant
2
-
--> $DIR/alloc_intrinsic_untyped.rs:6:1
2
+
--> $DIR/alloc_intrinsic_untyped.rs:7:1
3
3
|
4
4
LL | const BAR: *mut i32 = unsafe { intrinsics::const_allocate(4, 4) as *mut i32 };
5
5
| ^^^^^^^^^^^^^^^^^^^
6
+
|
7
+
= 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 constant
19
+
--> $DIR/alloc_intrinsic_untyped.rs:7:1
20
+
|
21
+
LL | const BAR: *mut i32 = unsafe { intrinsics::const_allocate(4, 4) as *mut i32 };
22
+
| ^^^^^^^^^^^^^^^^^^^
23
+
|
24
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
25
+
= 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!
8
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
9
+
= note: `#[warn(const_eval_mutable_ptr_in_final_value)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
21
+
= note: for more information, see issue #122153 <https://github.com/rust-lang/rust/issues/122153>
22
+
= note: `#[warn(const_eval_mutable_ptr_in_final_value)]` on by default
0 commit comments