Skip to content

Commit

Permalink
Remove unused feature from a miri test
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Oct 26, 2023
1 parent e362241 commit fe97fdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/ui/consts/miri_unleashed/ptr_arith.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/consts/miri_unleashed/ptr_arith.stderr
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
| ^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit fe97fdf

Please sign in to comment.