rebase fallout

This commit is contained in:
Ralf Jung 2020-05-04 11:29:16 +02:00
parent a06740cbea
commit e73ee41241
3 changed files with 3 additions and 5 deletions

View file

@ -4,7 +4,7 @@
use std::cell::UnsafeCell;
// this test ICEs to ensure that our mutability story is sound
// this test ensures that our mutability story is sound
struct Meh {
x: &'static UnsafeCell<i32>,

View file

@ -1,7 +1,5 @@
// compile-flags: -Zunleash-the-miri-inside-of-you
#![feature(const_raw_ptr_deref)]
#![feature(const_mut_refs)]
#![allow(const_err)]
use std::cell::UnsafeCell;

View file

@ -1,5 +1,5 @@
error: untyped pointers are not allowed in constant
--> $DIR/raw_mutable_const.rs:9:1
--> $DIR/raw_mutable_const.rs:7:1
|
LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -7,7 +7,7 @@ LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *m
warning: skipping const checks
|
help: skipping check that does not even have a feature gate
--> $DIR/raw_mutable_const.rs:9:38
--> $DIR/raw_mutable_const.rs:7:38
|
LL | const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
| ^^^^^^^^^^^^^^^^^^^^