diff options
| author | Ralf Jung <post@ralfj.de> | 2020-04-30 11:59:48 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-05-01 10:50:04 +0200 |
| commit | 2feeb88b62e7ae9cdf3ef85ff850239cf60c9ec7 (patch) | |
| tree | ef5b2e8b5ff3422393b931292d6b5aab6326d756 /src/test | |
| parent | f94899565bf6d9e4484991fd3e49875a4886386d (diff) | |
| download | rust-2feeb88b62e7ae9cdf3ef85ff850239cf60c9ec7.tar.gz rust-2feeb88b62e7ae9cdf3ef85ff850239cf60c9ec7.zip | |
bless you
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/consts/const-eval/ub-wide-ptr.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/consts/offset_from_ub.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/consts/const-eval/ub-wide-ptr.stderr b/src/test/ui/consts/const-eval/ub-wide-ptr.stderr index 3c3305e8074..e359e516f76 100644 --- a/src/test/ui/consts/const-eval/ub-wide-ptr.stderr +++ b/src/test/ui/consts/const-eval/ub-wide-ptr.stderr @@ -186,7 +186,7 @@ error[E0080]: could not evaluate static initializer --> $DIR/ub-wide-ptr.rs:121:5 | LL | mem::transmute::<_, &dyn Trait>((&92u8, 0usize)) - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid use of NULL pointer + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing NULL pointer error[E0080]: could not evaluate static initializer --> $DIR/ub-wide-ptr.rs:125:5 diff --git a/src/test/ui/consts/offset_from_ub.stderr b/src/test/ui/consts/offset_from_ub.stderr index 4c591d5ee81..b0e4b7fcc79 100644 --- a/src/test/ui/consts/offset_from_ub.stderr +++ b/src/test/ui/consts/offset_from_ub.stderr @@ -66,7 +66,7 @@ error: any use of this value will cause an error LL | intrinsics::ptr_offset_from(self, origin) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | - | invalid use of NULL pointer + | dereferencing NULL pointer | inside `std::ptr::const_ptr::<impl *const u8>::offset_from` at $SRC_DIR/libcore/ptr/const_ptr.rs:LL:COL | inside `OFFSET_FROM_NULL` at $DIR/offset_from_ub.rs:37:14 | |
