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
| ------------------------------ inside `S1` at $DIR/forbidden_slices.rs:20:33
33
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
34
29
35
error[E0080]: could not evaluate static initializer
30
36
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
31
37
|
32
38
LL | &*ptr::slice_from_raw_parts(data, len)
33
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
-
| |
35
-
| dereferencing pointer failed: ALLOC_ID has size 4, so pointer to 8 bytes starting at offset 0 is out-of-bounds
36
-
| inside `std::slice::from_raw_parts::<'_, u32>` at $SRC_DIR/core/src/slice/raw.rs:LL:COL
39
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: ALLOC_ID has size 4, so pointer to 8 bytes starting at offset 0 is out-of-bounds
| ---------------------- inside `S2` at $DIR/forbidden_slices.rs:23:34
50
+
| ^^^^^^^^^^^^^^^^^^^^^^
42
51
43
52
error[E0080]: it is undefined behavior to use this value
44
53
--> $DIR/forbidden_slices.rs:26:1
@@ -67,7 +76,7 @@ error[E0080]: it is undefined behavior to use this value
67
76
--> $DIR/forbidden_slices.rs:30:1
68
77
|
69
78
LL | pub static S6: &[bool] = unsafe { from_raw_parts((&D0) as *const _ as _, 4) };
70
-
| ^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>[0]: encountered 0x11, but expected a boolean
79
+
| ^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>[3]: encountered 0x11, but expected a boolean
71
80
|
72
81
= 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.
73
82
= note: the raw bytes of the constant (size: 16, align: 8) {
@@ -89,72 +98,85 @@ error[E0080]: could not evaluate static initializer
89
98
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
90
99
|
91
100
LL | &*ptr::slice_from_raw_parts(data, len)
92
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93
-
| |
94
-
| dereferencing pointer failed: ALLOC_ID has size 8, so pointer to 8 bytes starting at offset 1 is out-of-bounds
95
-
| inside `std::slice::from_raw_parts::<'_, u64>` at $SRC_DIR/core/src/slice/raw.rs:LL:COL
101
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: ALLOC_ID has size 8, so pointer to 8 bytes starting at offset 1 is out-of-bounds
| the evaluated program panicked at 'assertion failed: 0 < pointee_size && pointee_size <= isize::MAX as usize', $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
128
-
| inside `ptr::const_ptr::<impl *const ()>::sub_ptr` at $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
140
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: 0 < pointee_size && pointee_size <= isize::MAX as usize', $SRC_DIR/core/src/ptr/const_ptr.rs:LL:COL
| ---------- inside `R2` at $DIR/forbidden_slices.rs:51:25
179
+
| ^^^^^^^^^^
158
180
159
181
error[E0080]: it is undefined behavior to use this value
160
182
--> $DIR/forbidden_slices.rs:53:1
@@ -183,7 +205,7 @@ error[E0080]: it is undefined behavior to use this value
183
205
--> $DIR/forbidden_slices.rs:63:1
184
206
|
185
207
LL | pub static R6: &[bool] = unsafe {
186
-
| ^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>[0]: encountered 0x11, but expected a boolean
208
+
| ^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>[3]: encountered 0x11, but expected a boolean
187
209
|
188
210
= 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.
189
211
= note: the raw bytes of the constant (size: 16, align: 8) {
= 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.
103
103
= note: the raw bytes of the constant (size: 8, align: 4) {
0 commit comments