Skip to content

Commit 97d3e4e

Browse files
committed
fmt
1 parent 154c7a5 commit 97d3e4e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/tools/miri/tests/fail/intrinsics/simd-scatter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ fn main() {
55
unsafe {
66
let mut vec: Vec<i8> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
77
let idxs = Simd::from_array([9, 3, 0, 17]);
8-
Simd::from_array([-27, 82, -41, 124]).scatter_select_unchecked( //~ERROR: pointer to 1 byte starting at offset 9 is out-of-bounds
8+
Simd::from_array([-27, 82, -41, 124]).scatter_select_unchecked(
9+
//~^ERROR: pointer to 1 byte starting at offset 9 is out-of-bounds
910
&mut vec,
1011
Mask::splat(true),
1112
idxs,

src/tools/miri/tests/fail/intrinsics/simd-scatter.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ error: Undefined Behavior: dereferencing pointer failed: ALLOC has size 9, so po
22
--> $DIR/simd-scatter.rs:LL:CC
33
|
44
LL | / Simd::from_array([-27, 82, -41, 124]).scatter_select_unchecked(
5+
LL | |
56
LL | | &mut vec,
67
LL | | Mask::splat(true),
78
LL | | idxs,

0 commit comments

Comments
 (0)