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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
50
+
|
51
+
= 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.
52
+
= note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
175
+
|
176
+
= 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.
177
+
= note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
178
+
HEX_DUMP
179
+
}
180
+
159
181
error[E0080]: accessing memory based on pointer with alignment 1, but alignment 4 is required
160
-
--> $DIR/ub-ref-ptr.rs:65:5
182
+
--> $DIR/ub-ref-ptr.rs:75:5
161
183
|
162
184
LL | ptr.read();
163
185
| ^^^^^^^^^^ evaluation of `UNALIGNED_READ` failed here
164
186
165
187
error[E0080]: constructing invalid value: encountered a pointer with unknown absolute address, but expected something that is definitely greater or equal to 1000
166
-
--> $DIR/ub-ref-ptr.rs:74:1
188
+
--> $DIR/ub-ref-ptr.rs:84:1
167
189
|
168
190
LL | const INVALID_VALUE_PTR: High = unsafe { mem::transmute(&S) };
169
191
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
| ^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
6
+
|
7
+
= 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.
8
+
= note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
9
+
HEX_DUMP
10
+
}
11
+
12
+
error: aborting due to 1 previous error
13
+
14
+
For more information about this error, try `rustc --explain E0080`.
0 commit comments