Skip to content

Commit

Permalink
bless caller-location test
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 3, 2020
1 parent a909c03 commit 182133f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const fn attributed() -> L {
std::intrinsics::caller_location()
}

const fn calling_attributed() -> L { //~ WARN skipping const checks
const fn calling_attributed() -> L {
// We need `-Z unleash-the-miri-inside-of-you` for this as we don't have `const fn` pointers.
let ptr: fn() -> L = attributed;
ptr()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
warning: skipping const checks
--> $DIR/caller-location-fnptr-rt-ctfe-equiv.rs:18:1
|
LL | / const fn calling_attributed() -> L {
LL | | // We need `-Z unleash-the-miri-inside-of-you` for this as we don't have `const fn` pointers.
LL | | let ptr: fn() -> L = attributed;
LL | | ptr()
LL | | }
| |_^
help: skipping check that does not even have a feature gate
--> $DIR/caller-location-fnptr-rt-ctfe-equiv.rs:21:5
|
LL | ptr()
| ^^^^^

warning: 1 warning emitted

0 comments on commit 182133f

Please sign in to comment.