Skip to content

Commit

Permalink
rebase fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 10, 2020
1 parent a06740c commit e73ee41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/consts/miri_unleashed/raw_mutable_const.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/consts/miri_unleashed/raw_mutable_const.stderr
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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 _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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 _;
| ^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit e73ee41

Please sign in to comment.