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
const_eval_validation_mutable_ref_in_const = {$front_matter}: encountered mutable reference in `const` value
477
477
const_eval_validation_mutable_ref_to_immutable = {$front_matter}: encountered mutable reference or box pointing to read-only memory
478
478
const_eval_validation_never_val = {$front_matter}: encountered a value of the never type `!`
479
-
const_eval_validation_null_box = {$front_matter}: encountered a null box
479
+
const_eval_validation_null_box = {$front_matter}: encountered a {$maybe->
480
+
[true] maybe-null
481
+
*[false] null
482
+
} box
480
483
const_eval_validation_null_fn_ptr = {$front_matter}: encountered a null function pointer
481
-
const_eval_validation_null_ref = {$front_matter}: encountered a null reference
482
-
const_eval_validation_nullable_ptr_out_of_range = {$front_matter}: encountered a potentially null pointer, but expected something that cannot possibly fail to be {$in_range}
484
+
const_eval_validation_null_ref = {$front_matter}: encountered a {$maybe->
485
+
[true] maybe-null
486
+
*[false] null
487
+
} reference
488
+
const_eval_validation_nonnull_ptr_out_of_range = {$front_matter}: encountered a maybe-null pointer, but expected something that is definitely non-zero
483
489
const_eval_validation_out_of_range = {$front_matter}: encountered {$value}, but expected something {$in_range}
484
490
const_eval_validation_partial_pointer = {$front_matter}: encountered a partial pointer or a mix of pointers
485
491
const_eval_validation_pointer_as_int = {$front_matter}: encountered a pointer, but {$expected}
486
-
const_eval_validation_ptr_out_of_range = {$front_matter}: encountered a pointer, but expected something that cannot possibly fail to be{$in_range}
492
+
const_eval_validation_ptr_out_of_range = {$front_matter}: encountered a pointer with unknown absolute address, but expected something that is definitely{$in_range}
487
493
const_eval_validation_ref_to_uninhabited = {$front_matter}: encountered a reference pointing to uninhabited type {$ty}
488
494
const_eval_validation_unaligned_box = {$front_matter}: encountered an unaligned box (required {$required_bytes} byte alignment but found {$found_bytes})
489
495
const_eval_validation_unaligned_ref = {$front_matter}: encountered an unaligned reference (required {$required_bytes} byte alignment but found {$found_bytes})
error[E0080]: in-bounds pointer arithmetic failed: attempting to offset pointer by 255 bytes, but got ALLOC1 which is only 1 byte from the end of the allocation
12
+
error[E0080]: in-bounds pointer arithmetic failed: attempting to offset pointer by 255 bytes, but got ALLOC2 which is only 1 byte from the end of the allocation
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ it is undefined behavior to use this value
88
+
|
89
+
= 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.
90
+
= note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
91
+
HEX_DUMP
92
+
}
93
+
94
+
error: aborting due to 9 previous errors
84
95
85
96
For more information about this error, try `rustc --explain E0080`.
0 commit comments