about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-05-03 18:04:24 +0200
committerRalf Jung <post@ralfj.de>2020-05-03 18:04:24 +0200
commit182133f8c842cff0b737f0e322156a9d6497b05c (patch)
tree510314b817018fc6659f314cc16ed71393a76528
parenta909c039b55c89f29dfea8a1acd7b32c94a643fb (diff)
downloadrust-182133f8c842cff0b737f0e322156a9d6497b05c.tar.gz
rust-182133f8c842cff0b737f0e322156a9d6497b05c.zip
bless caller-location test
-rw-r--r--src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs2
-rw-r--r--src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr12
2 files changed, 6 insertions, 8 deletions
diff --git a/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs b/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs
index 4b7253ce1cc..edf9ba2c41a 100644
--- a/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs
+++ b/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs
@@ -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()
diff --git a/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr b/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr
index c47638d4276..cf8ca57714c 100644
--- a/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr
+++ b/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr
@@ -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