Skip to content

Commit 182133f

Browse files
committed
bless caller-location test
1 parent a909c03 commit 182133f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const fn attributed() -> L {
1515
std::intrinsics::caller_location()
1616
}
1717

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

119
warning: 1 warning emitted
1210

0 commit comments

Comments
 (0)