Skip to content

Commit f0bbd2b

Browse files
committed
Move tests to SIMD subdirectory
1 parent 75d8199 commit f0bbd2b

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/librustc_mir/interpret/intrinsics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
247247
vector[index] = scalar;
248248
} else {
249249
throw_ub_format!(
250-
"Inserting `{:?}` with size `{}` to a vector element place of size `{}`",
251-
scalar, scalar.layout.size.bytes(), vector[index].layout.size.bytes()
250+
"Inserting `{}` with size `{}` to a vector element place of size `{}`",
251+
scalar.layout.ty, scalar.layout.size.bytes(), vector[index].layout.size.bytes()
252252
);
253253
}
254254
self.write_vector(vector, dest)?;

src/test/ui/consts/const-eval/const_eval-simd_fail.stderr renamed to src/test/ui/consts/const-eval/simd/insert_extract-fail.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: any use of this value will cause an error
2-
--> $DIR/const_eval-simd_fail.rs:14:14
2+
--> $DIR/insert_extract-fail.rs:14:14
33
|
44
LL | unsafe { simd_insert(x, 0_u32, 42_i16) }.0
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
| |
77
| Inserting `i16` with size `2` to a vector element place of size `1`
8-
| inside call to `foo` at $DIR/const_eval-simd_fail.rs:19:19
8+
| inside call to `foo` at $DIR/insert_extract-fail.rs:19:19
99
...
1010
LL | const X: i8 = foo(V);
1111
| ---------------------

src/test/ui/consts/const-eval/const_eval-simd.stderr renamed to src/test/ui/consts/const-eval/simd/insert_extract.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
warning: skipping const checks
2-
--> $DIR/const_eval-simd.rs:22:5
2+
--> $DIR/insert_extract.rs:22:5
33
|
44
LL | assert_eq!(X, 42);
55
| ^^^^^^^^^^^^^^^^^^
66
|
77
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
88

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

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

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

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

4141
warning: skipping const checks
42-
--> $DIR/const_eval-simd.rs:23:5
42+
--> $DIR/insert_extract.rs:23:5
4343
|
4444
LL | assert_eq!(Y, 13);
4545
| ^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)