Skip to content

Commit ff4158a

Browse files
Bless miri unleashed output
1 parent f2e7faf commit ff4158a

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/test/ui/consts/miri_unleashed/mutable_references.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::cell::UnsafeCell;
77

88
static FOO: &&mut u32 = &&mut 42;
99
//~^ WARN: skipping const checks
10-
//~| WARN: skipping const checks
1110

1211
static BAR: &mut () = &mut ();
1312
//~^ WARN: skipping const checks

src/test/ui/consts/miri_unleashed/mutable_references.stderr

+5-11
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,31 @@ LL | static FOO: &&mut u32 = &&mut 42;
55
| ^^^^^^^
66

77
warning: skipping const checks
8-
--> $DIR/mutable_references.rs:8:25
9-
|
10-
LL | static FOO: &&mut u32 = &&mut 42;
11-
| ^^^^^^^^
12-
13-
warning: skipping const checks
14-
--> $DIR/mutable_references.rs:12:23
8+
--> $DIR/mutable_references.rs:11:23
159
|
1610
LL | static BAR: &mut () = &mut ();
1711
| ^^^^^^^
1812

1913
warning: skipping const checks
20-
--> $DIR/mutable_references.rs:17:28
14+
--> $DIR/mutable_references.rs:16:28
2115
|
2216
LL | static BOO: &mut Foo<()> = &mut Foo(());
2317
| ^^^^^^^^^^^^
2418

2519
warning: skipping const checks
26-
--> $DIR/mutable_references.rs:27:8
20+
--> $DIR/mutable_references.rs:26:8
2721
|
2822
LL | x: &UnsafeCell::new(42),
2923
| ^^^^^^^^^^^^^^^^^^^^
3024

3125
warning: skipping const checks
32-
--> $DIR/mutable_references.rs:31:27
26+
--> $DIR/mutable_references.rs:30:27
3327
|
3428
LL | static OH_YES: &mut i32 = &mut 42;
3529
| ^^^^^^^
3630

3731
error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
38-
--> $DIR/mutable_references.rs:38:5
32+
--> $DIR/mutable_references.rs:37:5
3933
|
4034
LL | *OH_YES = 99;
4135
| ^^^^^^^^^^^^ cannot assign

0 commit comments

Comments
 (0)