Bless miri unleashed output

This commit is contained in:
Dylan MacKenzie 2019-09-25 15:18:26 -07:00
parent f2e7faf153
commit ff4158abf2
2 changed files with 5 additions and 12 deletions

View file

@ -7,7 +7,6 @@ use std::cell::UnsafeCell;
static FOO: &&mut u32 = &&mut 42;
//~^ WARN: skipping const checks
//~| WARN: skipping const checks
static BAR: &mut () = &mut ();
//~^ WARN: skipping const checks

View file

@ -5,37 +5,31 @@ LL | static FOO: &&mut u32 = &&mut 42;
| ^^^^^^^
warning: skipping const checks
--> $DIR/mutable_references.rs:8:25
|
LL | static FOO: &&mut u32 = &&mut 42;
| ^^^^^^^^
warning: skipping const checks
--> $DIR/mutable_references.rs:12:23
--> $DIR/mutable_references.rs:11:23
|
LL | static BAR: &mut () = &mut ();
| ^^^^^^^
warning: skipping const checks
--> $DIR/mutable_references.rs:17:28
--> $DIR/mutable_references.rs:16:28
|
LL | static BOO: &mut Foo<()> = &mut Foo(());
| ^^^^^^^^^^^^
warning: skipping const checks
--> $DIR/mutable_references.rs:27:8
--> $DIR/mutable_references.rs:26:8
|
LL | x: &UnsafeCell::new(42),
| ^^^^^^^^^^^^^^^^^^^^
warning: skipping const checks
--> $DIR/mutable_references.rs:31:27
--> $DIR/mutable_references.rs:30:27
|
LL | static OH_YES: &mut i32 = &mut 42;
| ^^^^^^^
error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
--> $DIR/mutable_references.rs:38:5
--> $DIR/mutable_references.rs:37:5
|
LL | *OH_YES = 99;
| ^^^^^^^^^^^^ cannot assign