Skip to content

Commit 2feeb88

Browse files
committed
bless you
1 parent f948995 commit 2feeb88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/consts/const-eval/ub-wide-ptr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ error[E0080]: could not evaluate static initializer
186186
--> $DIR/ub-wide-ptr.rs:121:5
187187
|
188188
LL | mem::transmute::<_, &dyn Trait>((&92u8, 0usize))
189-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid use of NULL pointer
189+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing NULL pointer
190190

191191
error[E0080]: could not evaluate static initializer
192192
--> $DIR/ub-wide-ptr.rs:125:5

src/test/ui/consts/offset_from_ub.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ error: any use of this value will cause an error
6666
LL | 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
|

0 commit comments

Comments
 (0)