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
= 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.
47
47
= note: the raw bytes of the constant (size: 8, align: 4) {
48
-
╾─ALLOC_ID─╼ 01 00 00 00 │ ╾──╼....
48
+
╾ALLOC_ID╼ 01 00 00 00 │ ╾──╼....
49
49
}
50
50
51
51
error[E0080]: it is undefined behavior to use this value
@@ -57,7 +57,7 @@ LL | pub static S5: &[u8] = unsafe { from_raw_parts((&D3) as *const _ as _, size
57
57
= help: this code performed an operation that depends on the underlying bytes representing a pointer
58
58
= help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
59
59
= note: the raw bytes of the constant (size: 8, align: 4) {
60
-
╾─ALLOC_ID─╼ 04 00 00 00 │ ╾──╼....
60
+
╾ALLOC_ID╼ 04 00 00 00 │ ╾──╼....
61
61
}
62
62
63
63
error[E0080]: it is undefined behavior to use this value
@@ -68,24 +68,24 @@ LL | pub static S6: &[bool] = unsafe { from_raw_parts((&D0) as *const _ as _, 4)
68
68
|
69
69
= 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.
70
70
= note: the raw bytes of the constant (size: 8, align: 4) {
71
-
╾─ALLOC_ID─╼ 04 00 00 00 │ ╾──╼....
71
+
╾ALLOC_ID╼ 04 00 00 00 │ ╾──╼....
72
72
}
73
73
74
74
error[E0080]: it is undefined behavior to use this value
75
75
--> $DIR/forbidden_slices.rs:32:1
76
76
|
77
77
LL | pub static S7: &[u16] = unsafe {
78
-
| ^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered an unaligned reference (required 2 byte alignment but found 1)
78
+
| ^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>[1]: encountered uninitialized bytes
79
79
|
80
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
81
= note: the raw bytes of the constant (size: 8, align: 4) {
82
-
╾─A_ID+0x1─╼ 04 00 00 00 │ ╾──╼....
82
+
╾ALLOC_ID+0x2╼ 04 00 00 00 │ ╾──╼....
83
83
}
84
84
85
85
error[E0080]: could not evaluate static initializer
86
86
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
87
87
|
88
-
= note: dereferencing pointer failed: ALLOC_ID has size 8, so pointer to 8 bytes starting at offset 1 is out-of-bounds
88
+
= note: dereferencing pointer failed: allocN has size 8, so pointer to 8 bytes starting at offset 1 is out-of-bounds
= 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.
151
151
= note: the raw bytes of the constant (size: 8, align: 4) {
152
-
╾ALLOC_ID─╼ 01 00 00 00 │ ╾──╼....
152
+
╾ALLOC_ID╼ 01 00 00 00 │ ╾──╼....
153
153
}
154
154
155
155
error[E0080]: it is undefined behavior to use this value
= 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.
174
174
= note: the raw bytes of the constant (size: 8, align: 4) {
175
-
╾ALLOC_ID─╼ 04 00 00 00 │ ╾──╼....
175
+
╾ALLOC_ID╼ 04 00 00 00 │ ╾──╼....
176
176
}
177
177
178
-
error[E0080]: it is undefined behavior to use this value
179
-
--> $DIR/forbidden_slices.rs:67:1
178
+
error[E0080]: could not evaluate static initializer
179
+
--> $SRC_DIR/core/src/slice/raw.rs:LL:COL
180
180
|
181
-
LL | pub static R7: &[u16] = unsafe {
182
-
| ^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered an unaligned reference (required 2 byte alignment but found 1)
181
+
= note: accessing memory with alignment 1, but alignment 2 is required
183
182
|
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: 8, align: 4) {
= 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.
47
47
= note: the raw bytes of the constant (size: 16, align: 8) {
error[E0080]: it is undefined behavior to use this value
@@ -68,31 +68,29 @@ LL | pub static S6: &[bool] = unsafe { from_raw_parts((&D0) as *const _ as _, 4)
68
68
|
69
69
= 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.
70
70
= 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.
81
+
= note: the raw bytes of the constant (size: 16, align: 8) {
error[E0080]: it is undefined behavior to use this value
147
-
--> $DIR/forbidden_slices.rs:51:1
145
+
--> $DIR/forbidden_slices.rs:52:1
148
146
|
149
147
LL | pub static R4: &[u8] = unsafe {
150
148
| ^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>[0]: encountered uninitialized bytes
151
149
|
152
150
= 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.
153
151
= note: the raw bytes of the constant (size: 16, align: 8) {
error[E0080]: it is undefined behavior to use this value
170
-
--> $DIR/forbidden_slices.rs:61:1
168
+
--> $DIR/forbidden_slices.rs:62:1
171
169
|
172
170
LL | pub static R6: &[bool] = unsafe {
173
171
| ^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>[0]: encountered 0x11, but expected a boolean
174
172
|
175
173
= 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.
176
174
= note: the raw bytes of the constant (size: 16, align: 8) {
0 commit comments