fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB26 linesraw
1error: Undefined Behavior: dereferencing pointer failed: ALLOC has size 9, so pointer to 1 byte starting at offset 9 is out-of-bounds
2  --> $DIR/simd-scatter.rs:LL:CC
3   |
4LL | /         Simd::from_array([-27, 82, -41, 124]).scatter_select_unchecked(
5LL | |
6LL | |             &mut vec,
7LL | |             Mask::splat(true),
8LL | |             idxs,
9LL | |         );
10   | |_________^ dereferencing pointer failed: ALLOC has size 9, so pointer to 1 byte starting at offset 9 is out-of-bounds
11   |
12   = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
13   = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
14help: ALLOC was allocated here:
15  --> $DIR/simd-scatter.rs:LL:CC
16   |
17LL |         let mut vec: Vec<i8> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
18   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19   = note: BACKTRACE (of the first span):
20   = note: inside `main` at $DIR/simd-scatter.rs:LL:CC
21   = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
24
25error: aborting due to previous error
26