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 2882d2d83ff8194dd81efce4ba8994ae75f8fec2..0000000000000000000000000000000000000000 --- 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 fb625ae116e7cc75085c2ff8887829eca357ad33..0000000000000000000000000000000000000000 --- 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 -