File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ error[E0080]: could not evaluate static initializer
186186 --> $DIR/ub-wide-ptr.rs:121:5
187187 |
188188LL | mem::transmute::<_, &dyn Trait>((&92u8, 0usize))
189- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid use of NULL pointer
189+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing NULL pointer
190190
191191error[E0080]: could not evaluate static initializer
192192 --> $DIR/ub-wide-ptr.rs:125:5
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ error: any use of this value will cause an error
6666LL | intrinsics::ptr_offset_from(self, origin)
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6868 | |
69- | invalid use of NULL pointer
69+ | dereferencing NULL pointer
7070 | inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL
7171 | inside `OFFSET_FROM_NULL` at $DIR/offset_from_ub.rs:37:14
7272 |
You can’t perform that action at this time.
0 commit comments