diff options
| author | Ralf Jung <post@ralfj.de> | 2019-12-05 23:59:30 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-12-06 00:10:01 +0100 |
| commit | f5bd94768a5ca901eb7555a4c3fd4d3005c1ad76 (patch) | |
| tree | 04f463e9088538296eddbbfdc346ae495aa7d50c /src/test/codegen | |
| parent | e5d50e3e88f88e8a8b20e90bb0d561e1ed71fe5f (diff) | |
| download | rust-f5bd94768a5ca901eb7555a4c3fd4d3005c1ad76.tar.gz rust-f5bd94768a5ca901eb7555a4c3fd4d3005c1ad76.zip | |
use abort instead of unreachable
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/set-discriminant-invalid.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/set-discriminant-invalid.rs b/src/test/codegen/set-discriminant-invalid.rs index 65e07fff1e4..d9614f062b7 100644 --- a/src/test/codegen/set-discriminant-invalid.rs +++ b/src/test/codegen/set-discriminant-invalid.rs @@ -20,9 +20,9 @@ impl IntoError<Error> for Api { type Source = ApiError; // CHECK-LABEL: @into_error - // CHECK: unreachable - // Also check the next two instructions to make sure we do not match against `unreachable` - // elsewhere in the code (e.g., in the closure bode). + // CHECK: llvm.trap() + // Also check the next two instructions to make sure we do not match against `trap` + // elsewhere in the code. // CHECK-NEXT: load // CHECK-NEXT: ret #[no_mangle] |
