diff options
| author | Maybe Waffle <waffle.lapkin@tasking.com> | 2023-10-26 00:46:56 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@tasking.com> | 2023-10-26 00:46:56 +0000 |
| commit | fe97fdf782a89563308e0ea03b1840c8dbc0bd68 (patch) | |
| tree | 88e05b8e9daa4d337c42ff46501d068073d4445a /tests/ui | |
| parent | e36224118f97887da84cb43f7a12019db5d87818 (diff) | |
| download | rust-fe97fdf782a89563308e0ea03b1840c8dbc0bd68.tar.gz rust-fe97fdf782a89563308e0ea03b1840c8dbc0bd68.zip | |
Remove unused feature from a miri test
Diffstat (limited to 'tests/ui')
| -rw-r--r-- | tests/ui/consts/miri_unleashed/ptr_arith.rs | 1 | ||||
| -rw-r--r-- | tests/ui/consts/miri_unleashed/ptr_arith.stderr | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/ui/consts/miri_unleashed/ptr_arith.rs b/tests/ui/consts/miri_unleashed/ptr_arith.rs index a54f06ee1d4..e59c6725269 100644 --- a/tests/ui/consts/miri_unleashed/ptr_arith.rs +++ b/tests/ui/consts/miri_unleashed/ptr_arith.rs @@ -1,5 +1,4 @@ // compile-flags: -Zunleash-the-miri-inside-of-you -#![feature(core_intrinsics)] // During CTFE, we prevent pointer-to-int casts. // Pointer comparisons are prevented in the trait system. diff --git a/tests/ui/consts/miri_unleashed/ptr_arith.stderr b/tests/ui/consts/miri_unleashed/ptr_arith.stderr index 25ca6bc4eaa..213966f90b8 100644 --- a/tests/ui/consts/miri_unleashed/ptr_arith.stderr +++ b/tests/ui/consts/miri_unleashed/ptr_arith.stderr @@ -1,11 +1,11 @@ error[E0080]: could not evaluate static initializer - --> $DIR/ptr_arith.rs:8:13 + --> $DIR/ptr_arith.rs:7:13 | LL | let x = &0 as *const _ as usize; | ^^^^^^^^^^^^^^^^^^^^^^^ exposing pointers is not possible at compile-time error[E0080]: could not evaluate static initializer - --> $DIR/ptr_arith.rs:16:14 + --> $DIR/ptr_arith.rs:15:14 | LL | let _v = x + 0; | ^ unable to turn pointer into integer @@ -16,7 +16,7 @@ LL | let _v = x + 0; warning: skipping const checks | help: skipping check that does not even have a feature gate - --> $DIR/ptr_arith.rs:8:13 + --> $DIR/ptr_arith.rs:7:13 | LL | let x = &0 as *const _ as usize; | ^^^^^^^^^^^^^^^^^^^^^^^ |
