about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Perry <adam.n.perry@gmail.com>2019-10-12 14:25:34 -0700
committerAdam Perry <adam.n.perry@gmail.com>2019-10-12 14:25:47 -0700
commit19f26fafdd6e27847a155a2ba8854c8d4ff61597 (patch)
tree853cc09f846269e0ac920e916d88575cca8583dc
parent2d5ef8f9ff091aa6e2758958745cc3edfa84f937 (diff)
downloadrust-19f26fafdd6e27847a155a2ba8854c8d4ff61597.tar.gz
rust-19f26fafdd6e27847a155a2ba8854c8d4ff61597.zip
Remove the fn pointer #[track_caller] test.
The ICE stderr isn't normalizing correctly on some builders.
-rw-r--r--src/test/ui/rfc-2091-track-caller/taking-fn-pointer.rs16
-rw-r--r--src/test/ui/rfc-2091-track-caller/taking-fn-pointer.stderr21
2 files changed, 0 insertions, 37 deletions
diff --git a/src/test/ui/rfc-2091-track-caller/taking-fn-pointer.rs b/src/test/ui/rfc-2091-track-caller/taking-fn-pointer.rs
deleted file mode 100644
index 2882d2d83ff..00000000000
--- a/src/test/ui/rfc-2091-track-caller/taking-fn-pointer.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// failure-status: 101
-// normalize-stderr-test "note: rustc 1.* running on .*" -> "note: rustc VERSION running on TARGET"
-// normalize-stderr-test "note: compiler flags: .*" -> "note: compiler flags: FLAGS"
-
-#![feature(track_caller)] //~ WARN the feature `track_caller` is incomplete
-
-#[track_caller]
-fn f() {}
-
-fn call_it(x: fn()) {
-    x();
-}
-
-fn main() {
-    call_it(f);
-}
diff --git a/src/test/ui/rfc-2091-track-caller/taking-fn-pointer.stderr b/src/test/ui/rfc-2091-track-caller/taking-fn-pointer.stderr
deleted file mode 100644
index fb625ae116e..00000000000
--- a/src/test/ui/rfc-2091-track-caller/taking-fn-pointer.stderr
+++ /dev/null
@@ -1,21 +0,0 @@
-warning: the feature `track_caller` is incomplete and may cause the compiler to crash
-  --> $DIR/taking-fn-pointer.rs:5:12
-   |
-LL | #![feature(track_caller)]
-   |            ^^^^^^^^^^^^
-   |
-   = note: `#[warn(incomplete_features)]` on by default
-
-thread 'rustc' panicked at 'index out of bounds: the len is 1 but the index is 1', $SRC_DIR/libcore/slice/mod.rs:LL:COL
-note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
-
-error: internal compiler error: unexpected panic
-
-note: the compiler unexpectedly panicked. this is a bug.
-
-note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
-
-note: rustc VERSION running on TARGET
-
-note: compiler flags: FLAGS
-