bless caller-location test

This commit is contained in:
Ralf Jung 2020-05-03 18:04:24 +02:00
parent a909c039b5
commit 182133f8c8
2 changed files with 6 additions and 8 deletions

View File

@ -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()

View File

@ -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