about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-03-14 04:03:33 +0900
committerGitHub <noreply@github.com>2020-03-14 04:03:33 +0900
commitf2af2cff0fa16aaa277241f6a8c8dbd9c205c4a8 (patch)
treec2717937fed0f56ec56e89ae9808010b8fcf610e /src/test
parent77263db96f30a5bc2c4b74d0546803ad9d79b865 (diff)
parent13ea774513131b8102f35cb105cc17f39eb1b947 (diff)
downloadrust-f2af2cff0fa16aaa277241f6a8c8dbd9c205c4a8.tar.gz
rust-f2af2cff0fa16aaa277241f6a8c8dbd9c205c4a8.zip
Rollup merge of #69960 - RalfJung:abort, r=oli-obk
miri engine: fix treatment of abort intrinsic

I screwed up in https://github.com/rust-lang/rust/pull/69830 and added `abort` to the wrong block of intrinsics, namely the one that actually has a return place. So that branch was never actually reached.

r? @oli-obk
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/consts/const-eval/validate_uninhabited_zsts.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-eval/validate_uninhabited_zsts.stderr b/src/test/ui/consts/const-eval/validate_uninhabited_zsts.stderr
index d0e35615dab..cede356a6b8 100644
--- a/src/test/ui/consts/const-eval/validate_uninhabited_zsts.stderr
+++ b/src/test/ui/consts/const-eval/validate_uninhabited_zsts.stderr
@@ -4,7 +4,7 @@ warning: any use of this value will cause an error
 LL |     unsafe { std::mem::transmute(()) }
    |              ^^^^^^^^^^^^^^^^^^^^^^^
    |              |
-   |              entering unreachable code
+   |              transmuting to uninhabited type
    |              inside call to `foo` at $DIR/validate_uninhabited_zsts.rs:14:26
 ...
 LL | const FOO: [Empty; 3] = [foo(); 3];