bless caller-location test
This commit is contained in:
parent
a909c039b5
commit
182133f8c8
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user