You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0080]: it is undefined behavior to use this value
75
-
--> $DIR/forbidden_slices.rs:32:1
74
+
error[E0080]: could not evaluate static initializer
75
+
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
76
76
|
77
-
LL | pub static S7: &[u16] = unsafe {
78
-
| ^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered an unaligned reference (required 2 byte alignment but found 1)
77
+
= note: accessing memory with alignment 1, but alignment 2 is required
79
78
|
80
-
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
81
-
= note: the raw bytes of the constant (size: 16, align: 8) {
error[E0080]: it is undefined behavior to use this value
179
-
--> $DIR/forbidden_slices.rs:67:1
180
+
error[E0080]: could not evaluate static initializer
181
+
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
180
182
|
181
-
LL | pub static R7: &[u16] = unsafe {
182
-
| ^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered an unaligned reference (required 2 byte alignment but found 1)
183
+
= note: accessing memory with alignment 1, but alignment 2 is required
183
184
|
184
-
= note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
185
-
= note: the raw bytes of the constant (size: 16, align: 8) {
LL | copy_nonoverlapping(&src as *const _ as *const i32, &mut dst as *mut _ as *mut i32, 0);
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ accessing memory with alignment 1, but alignment 4 is required
6
+
7
+
error[E0080]: evaluation of constant value failed
8
+
--> $DIR/copy-intrinsic.rs:28:5
3
9
|
4
10
LL | copy_nonoverlapping(0x100 as *const i32, dangle, 0);
5
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: alloc5 has size 4, so pointer at offset 40 is out-of-bounds
6
12
7
13
error[E0080]: evaluation of constant value failed
8
-
--> $DIR/copy-intrinsic.rs:34:5
14
+
--> $DIR/copy-intrinsic.rs:35:5
9
15
|
10
16
LL | copy_nonoverlapping(dangle, 0x100 as *mut i32, 0);
11
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: alloc7 has size 4, so pointer at offset 40 is out-of-bounds
0 commit comments