Skip to content

Commit

Permalink
Move tests to SIMD subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Sep 24, 2019
1 parent 75d8199 commit f0bbd2b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/interpret/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
vector[index] = scalar;
} else {
throw_ub_format!(
"Inserting `{:?}` with size `{}` to a vector element place of size `{}`",
scalar, scalar.layout.size.bytes(), vector[index].layout.size.bytes()
"Inserting `{}` with size `{}` to a vector element place of size `{}`",
scalar.layout.ty, scalar.layout.size.bytes(), vector[index].layout.size.bytes()
);
}
self.write_vector(vector, dest)?;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: any use of this value will cause an error
--> $DIR/const_eval-simd_fail.rs:14:14
--> $DIR/insert_extract-fail.rs:14:14
|
LL | unsafe { simd_insert(x, 0_u32, 42_i16) }.0
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| Inserting `i16` with size `2` to a vector element place of size `1`
| inside call to `foo` at $DIR/const_eval-simd_fail.rs:19:19
| inside call to `foo` at $DIR/insert_extract-fail.rs:19:19
...
LL | const X: i8 = foo(V);
| ---------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
warning: skipping const checks
--> $DIR/const_eval-simd.rs:22:5
--> $DIR/insert_extract.rs:22:5
|
LL | assert_eq!(X, 42);
| ^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: skipping const checks
--> $DIR/const_eval-simd.rs:22:5
--> $DIR/insert_extract.rs:22:5
|
LL | assert_eq!(X, 42);
| ^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: skipping const checks
--> $DIR/const_eval-simd.rs:22:5
--> $DIR/insert_extract.rs:22:5
|
LL | assert_eq!(X, 42);
| ^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: skipping const checks
--> $DIR/const_eval-simd.rs:23:5
--> $DIR/insert_extract.rs:23:5
|
LL | assert_eq!(Y, 13);
| ^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: skipping const checks
--> $DIR/const_eval-simd.rs:23:5
--> $DIR/insert_extract.rs:23:5
|
LL | assert_eq!(Y, 13);
| ^^^^^^^^^^^^^^^^^^
|
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

warning: skipping const checks
--> $DIR/const_eval-simd.rs:23:5
--> $DIR/insert_extract.rs:23:5
|
LL | assert_eq!(Y, 13);
| ^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit f0bbd2b

Please sign in to comment.