From 5ecb7eb161e75ab33ca015e7f717424f32af3d59 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Wed, 25 Sep 2019 14:32:57 +0200 Subject: [PATCH] Remove fail tests --- .../consts/const-eval/simd/extract-fail0.rs | 26 ------------------- .../const-eval/simd/extract-fail0.stderr | 15 ----------- .../consts/const-eval/simd/extract-fail1.rs | 26 ------------------- .../const-eval/simd/extract-fail1.stderr | 15 ----------- .../consts/const-eval/simd/extract-fail2.rs | 26 ------------------- .../const-eval/simd/extract-fail2.stderr | 13 ---------- .../ui/consts/const-eval/simd/insert-fail0.rs | 26 ------------------- .../const-eval/simd/insert-fail0.stderr | 15 ----------- .../ui/consts/const-eval/simd/insert-fail1.rs | 26 ------------------- .../const-eval/simd/insert-fail1.stderr | 13 ---------- 10 files changed, 201 deletions(-) delete mode 100644 src/test/ui/consts/const-eval/simd/extract-fail0.rs delete mode 100644 src/test/ui/consts/const-eval/simd/extract-fail0.stderr delete mode 100644 src/test/ui/consts/const-eval/simd/extract-fail1.rs delete mode 100644 src/test/ui/consts/const-eval/simd/extract-fail1.stderr delete mode 100644 src/test/ui/consts/const-eval/simd/extract-fail2.rs delete mode 100644 src/test/ui/consts/const-eval/simd/extract-fail2.stderr delete mode 100644 src/test/ui/consts/const-eval/simd/insert-fail0.rs delete mode 100644 src/test/ui/consts/const-eval/simd/insert-fail0.stderr delete mode 100644 src/test/ui/consts/const-eval/simd/insert-fail1.rs delete mode 100644 src/test/ui/consts/const-eval/simd/insert-fail1.stderr diff --git a/src/test/ui/consts/const-eval/simd/extract-fail0.rs b/src/test/ui/consts/const-eval/simd/extract-fail0.rs deleted file mode 100644 index 4a046e424c528..0000000000000 --- a/src/test/ui/consts/const-eval/simd/extract-fail0.rs +++ /dev/null @@ -1,26 +0,0 @@ -// failure-status: 101 -// rustc-env:RUST_BACKTRACE=0 -// normalize-stderr-test "note: rustc 1.* running on .*" -> "note: rustc VERSION running on TARGET" -// normalize-stderr-test "note: compiler flags: .*" -> "note: compiler flags: FLAGS" -// normalize-stderr-test "interpret/intern.rs:[0-9]*:[0-9]*" -> "interpret/intern.rs:LL:CC" - -#![feature(const_fn)] -#![feature(repr_simd)] -#![feature(platform_intrinsics)] -#![allow(non_camel_case_types)] - -#[repr(simd)] struct i8x1(i8); - -extern "platform-intrinsic" { - fn simd_extract(x: T, idx: u32) -> U; -} - -const X: i8x1 = i8x1(42); - -const fn extract_wrong_ret() -> i16 { - unsafe { simd_extract(X, 0_u32) } -} - -const A: i16 = extract_wrong_ret(); - -fn main() {} diff --git a/src/test/ui/consts/const-eval/simd/extract-fail0.stderr b/src/test/ui/consts/const-eval/simd/extract-fail0.stderr deleted file mode 100644 index be2c2607002e0..0000000000000 --- a/src/test/ui/consts/const-eval/simd/extract-fail0.stderr +++ /dev/null @@ -1,15 +0,0 @@ -thread 'rustc' panicked at 'assertion failed: `(left == right)` - left: `i8`, - right: `i16`: Return type `i16` must match vector element type `i8`', src/librustc_mir/interpret/intrinsics.rs:281:17 -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 - diff --git a/src/test/ui/consts/const-eval/simd/extract-fail1.rs b/src/test/ui/consts/const-eval/simd/extract-fail1.rs deleted file mode 100644 index ec281a19b17d0..0000000000000 --- a/src/test/ui/consts/const-eval/simd/extract-fail1.rs +++ /dev/null @@ -1,26 +0,0 @@ -// failure-status: 101 -// rustc-env:RUST_BACKTRACE=0 -// normalize-stderr-test "note: rustc 1.* running on .*" -> "note: rustc VERSION running on TARGET" -// normalize-stderr-test "note: compiler flags: .*" -> "note: compiler flags: FLAGS" -// normalize-stderr-test "interpret/intern.rs:[0-9]*:[0-9]*" -> "interpret/intern.rs:LL:CC" - -#![feature(const_fn)] -#![feature(repr_simd)] -#![feature(platform_intrinsics)] -#![allow(non_camel_case_types)] - -#[repr(simd)] struct i8x1(i8); - -extern "platform-intrinsic" { - fn simd_extract(x: T, idx: u32) -> U; -} - -const X: i8x1 = i8x1(42); - -const fn extract_wrong_vec() -> i8 { - unsafe { simd_extract(42_i8, 0_u32) } -} - -const B: i8 = extract_wrong_vec(); - -fn main() {} diff --git a/src/test/ui/consts/const-eval/simd/extract-fail1.stderr b/src/test/ui/consts/const-eval/simd/extract-fail1.stderr deleted file mode 100644 index 8c53ee874c466..0000000000000 --- a/src/test/ui/consts/const-eval/simd/extract-fail1.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error: internal compiler error: src/librustc_mir/interpret/operand.rs:345: Type `i8` is not a SIMD vector type - -thread 'rustc' panicked at 'Box', src/librustc_errors/lib.rs:643:9 -note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace. - -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 - -error: aborting due to previous error - diff --git a/src/test/ui/consts/const-eval/simd/extract-fail2.rs b/src/test/ui/consts/const-eval/simd/extract-fail2.rs deleted file mode 100644 index d1970877574f8..0000000000000 --- a/src/test/ui/consts/const-eval/simd/extract-fail2.rs +++ /dev/null @@ -1,26 +0,0 @@ -// failure-status: 101 -// rustc-env:RUST_BACKTRACE=0 -// normalize-stderr-test "note: rustc 1.* running on .*" -> "note: rustc VERSION running on TARGET" -// normalize-stderr-test "note: compiler flags: .*" -> "note: compiler flags: FLAGS" -// normalize-stderr-test "interpret/intern.rs:[0-9]*:[0-9]*" -> "interpret/intern.rs:LL:CC" - -#![feature(const_fn)] -#![feature(repr_simd)] -#![feature(platform_intrinsics)] -#![allow(non_camel_case_types)] - -#[repr(simd)] struct i8x1(i8); - -extern "platform-intrinsic" { - fn simd_extract(x: T, idx: u32) -> U; -} - -const X: i8x1 = i8x1(42); - -const fn extract_wrong_idx() -> i8 { - unsafe { simd_extract(X, 1_u32) } -} - -const C: i8 = extract_wrong_idx(); - -fn main() {} diff --git a/src/test/ui/consts/const-eval/simd/extract-fail2.stderr b/src/test/ui/consts/const-eval/simd/extract-fail2.stderr deleted file mode 100644 index 1885c930e9a2b..0000000000000 --- a/src/test/ui/consts/const-eval/simd/extract-fail2.stderr +++ /dev/null @@ -1,13 +0,0 @@ -thread 'rustc' panicked at 'index `1` is out-of-bounds of vector type `i8` with length `1`', src/librustc_mir/interpret/intrinsics.rs:276:17 -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 - diff --git a/src/test/ui/consts/const-eval/simd/insert-fail0.rs b/src/test/ui/consts/const-eval/simd/insert-fail0.rs deleted file mode 100644 index 2ee0fdfc1ec6b..0000000000000 --- a/src/test/ui/consts/const-eval/simd/insert-fail0.rs +++ /dev/null @@ -1,26 +0,0 @@ -// failure-status: 101 -// rustc-env:RUST_BACKTRACE=0 -// normalize-stderr-test "note: rustc 1.* running on .*" -> "note: rustc VERSION running on TARGET" -// normalize-stderr-test "note: compiler flags: .*" -> "note: compiler flags: FLAGS" -// normalize-stderr-test "interpret/intern.rs:[0-9]*:[0-9]*" -> "interpret/intern.rs:LL:CC" - -#![feature(const_fn)] -#![feature(repr_simd)] -#![feature(platform_intrinsics)] -#![allow(non_camel_case_types)] - -#[repr(simd)] struct i8x1(i8); - -extern "platform-intrinsic" { - fn simd_insert(x: T, idx: u32, val: U) -> T; -} - -const X: i8x1 = i8x1(42); - -const fn insert_wrong_scalar() -> i8x1 { - unsafe { simd_insert(X, 0_u32, 42_i16) } -} - -const D: i8x1 = insert_wrong_scalar(); - -fn main() {} diff --git a/src/test/ui/consts/const-eval/simd/insert-fail0.stderr b/src/test/ui/consts/const-eval/simd/insert-fail0.stderr deleted file mode 100644 index 1d0173ed33272..0000000000000 --- a/src/test/ui/consts/const-eval/simd/insert-fail0.stderr +++ /dev/null @@ -1,15 +0,0 @@ -thread 'rustc' panicked at 'assertion failed: `(left == right)` - left: `i16`, - right: `i8`: Scalar type `i16` must match vector element type `i8`', src/librustc_mir/interpret/intrinsics.rs:257:17 -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 - diff --git a/src/test/ui/consts/const-eval/simd/insert-fail1.rs b/src/test/ui/consts/const-eval/simd/insert-fail1.rs deleted file mode 100644 index 146b8ce6a130a..0000000000000 --- a/src/test/ui/consts/const-eval/simd/insert-fail1.rs +++ /dev/null @@ -1,26 +0,0 @@ -// failure-status: 101 -// rustc-env:RUST_BACKTRACE=0 -// normalize-stderr-test "note: rustc 1.* running on .*" -> "note: rustc VERSION running on TARGET" -// normalize-stderr-test "note: compiler flags: .*" -> "note: compiler flags: FLAGS" -// normalize-stderr-test "interpret/intern.rs:[0-9]*:[0-9]*" -> "interpret/intern.rs:LL:CC" - -#![feature(const_fn)] -#![feature(repr_simd)] -#![feature(platform_intrinsics)] -#![allow(non_camel_case_types)] - -#[repr(simd)] struct i8x1(i8); - -extern "platform-intrinsic" { - fn simd_insert(x: T, idx: u32, val: U) -> T; -} - -const X: i8x1 = i8x1(42); - -const fn insert_wrong_idx() -> i8x1 { - unsafe { simd_insert(X, 1_u32, 42_i8) } -} - -const E: i8x1 = insert_wrong_idx(); - -fn main() {} diff --git a/src/test/ui/consts/const-eval/simd/insert-fail1.stderr b/src/test/ui/consts/const-eval/simd/insert-fail1.stderr deleted file mode 100644 index 6223f308c2f35..0000000000000 --- a/src/test/ui/consts/const-eval/simd/insert-fail1.stderr +++ /dev/null @@ -1,13 +0,0 @@ -thread 'rustc' panicked at 'Index `1` must be in bounds of vector type `i8`: `[0, 1)`', src/librustc_mir/interpret/intrinsics.rs:247:17 -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 -