Skip to content

Commit 1e1257b

Browse files
Bless miri-unleashed tests
`const_mut_refs` doesn't actually work in a `const` or `static`
1 parent 81b3b66 commit 1e1257b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ help: skipping check for `const_mut_refs` feature
2121
|
2222
LL | &mut *(box 0)
2323
| ^^^^^^^^^^^^^
24-
help: skipping check for `const_mut_refs` feature
24+
help: skipping check that does not even have a feature gate
2525
--> $DIR/box.rs:10:5
2626
|
2727
LL | &mut *(box 0)

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ LL | *OH_YES = 99;
66

77
warning: skipping const checks
88
|
9-
help: skipping check for `const_mut_refs` feature
9+
help: skipping check that does not even have a feature gate
1010
--> $DIR/mutable_references.rs:9:26
1111
|
1212
LL | static FOO: &&mut u32 = &&mut 42;
1313
| ^^^^^^^
14-
help: skipping check for `const_mut_refs` feature
14+
help: skipping check that does not even have a feature gate
1515
--> $DIR/mutable_references.rs:13:23
1616
|
1717
LL | static BAR: &mut () = &mut ();
1818
| ^^^^^^^
19-
help: skipping check for `const_mut_refs` feature
19+
help: skipping check that does not even have a feature gate
2020
--> $DIR/mutable_references.rs:18:28
2121
|
2222
LL | static BOO: &mut Foo<()> = &mut Foo(());
@@ -26,7 +26,7 @@ help: skipping check that does not even have a feature gate
2626
|
2727
LL | x: &UnsafeCell::new(42),
2828
| ^^^^^^^^^^^^^^^^^^^^
29-
help: skipping check for `const_mut_refs` feature
29+
help: skipping check that does not even have a feature gate
3030
--> $DIR/mutable_references.rs:30:27
3131
|
3232
LL | static OH_YES: &mut i32 = &mut 42;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ help: skipping check that does not even have a feature gate
3030
|
3131
LL | const SNEAKY: &dyn Sync = &Synced { x: UnsafeCell::new(42) };
3232
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33-
help: skipping check for `const_mut_refs` feature
33+
help: skipping check that does not even have a feature gate
3434
--> $DIR/mutable_references_err.rs:30:25
3535
|
3636
LL | const BLUNT: &mut i32 = &mut 42;

0 commit comments

Comments
 (0)