Skip to content

Commit fe97fdf

Browse files
committed
Remove unused feature from a miri test
1 parent e362241 commit fe97fdf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/ui/consts/miri_unleashed/ptr_arith.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// compile-flags: -Zunleash-the-miri-inside-of-you
2-
#![feature(core_intrinsics)]
32

43
// During CTFE, we prevent pointer-to-int casts.
54
// Pointer comparisons are prevented in the trait system.

tests/ui/consts/miri_unleashed/ptr_arith.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0080]: could not evaluate static initializer
2-
--> $DIR/ptr_arith.rs:8:13
2+
--> $DIR/ptr_arith.rs:7:13
33
|
44
LL | let x = &0 as *const _ as usize;
55
| ^^^^^^^^^^^^^^^^^^^^^^^ exposing pointers is not possible at compile-time
66

77
error[E0080]: could not evaluate static initializer
8-
--> $DIR/ptr_arith.rs:16:14
8+
--> $DIR/ptr_arith.rs:15:14
99
|
1010
LL | let _v = x + 0;
1111
| ^ unable to turn pointer into integer
@@ -16,7 +16,7 @@ LL | let _v = x + 0;
1616
warning: skipping const checks
1717
|
1818
help: skipping check that does not even have a feature gate
19-
--> $DIR/ptr_arith.rs:8:13
19+
--> $DIR/ptr_arith.rs:7:13
2020
|
2121
LL | let x = &0 as *const _ as usize;
2222
| ^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)