about summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-09-25 14:32:57 +0200
committergnzlbg <gonzalobg88@gmail.com>2019-09-25 14:32:57 +0200
commit5ecb7eb161e75ab33ca015e7f717424f32af3d59 (patch)
treee8597f6da9d26d51e5f1da55dd63532d8a07b1e2 /src/test/ui/consts/const-eval
parent02bfbf96c7c241146957a75128ad63276fa0b671 (diff)
downloadrust-5ecb7eb161e75ab33ca015e7f717424f32af3d59.tar.gz
rust-5ecb7eb161e75ab33ca015e7f717424f32af3d59.zip
Remove fail tests
Diffstat (limited to 'src/test/ui/consts/const-eval')
-rw-r--r--src/test/ui/consts/const-eval/simd/extract-fail0.rs26
-rw-r--r--src/test/ui/consts/const-eval/simd/extract-fail0.stderr15
-rw-r--r--src/test/ui/consts/const-eval/simd/extract-fail1.rs26
-rw-r--r--src/test/ui/consts/const-eval/simd/extract-fail1.stderr15
-rw-r--r--src/test/ui/consts/const-eval/simd/extract-fail2.rs26
-rw-r--r--src/test/ui/consts/const-eval/simd/extract-fail2.stderr13
-rw-r--r--src/test/ui/consts/const-eval/simd/insert-fail0.rs26
-rw-r--r--src/test/ui/consts/const-eval/simd/insert-fail0.stderr15
-rw-r--r--src/test/ui/consts/const-eval/simd/insert-fail1.rs26
-rw-r--r--src/test/ui/consts/const-eval/simd/insert-fail1.stderr13
10 files changed, 0 insertions, 201 deletions
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 4a046e424c5..00000000000
--- 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<T, U>(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 be2c2607002..00000000000
--- 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 ec281a19b17..00000000000
--- 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<T, U>(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 8c53ee874c4..00000000000
--- 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<Any>', 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 d1970877574..00000000000
--- 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<T, U>(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 1885c930e9a..00000000000
--- 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 2ee0fdfc1ec..00000000000
--- 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<T, U>(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 1d0173ed332..00000000000
--- 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 146b8ce6a13..00000000000
--- 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<T, U>(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 6223f308c2f..00000000000
--- 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
-