diff options
| author | Gary Guo <gary@garyguo.net> | 2022-06-28 17:18:01 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2022-06-28 17:18:01 +0100 |
| commit | 49e6b7986a49a0ea1cd17a7853f26fe89883ef00 (patch) | |
| tree | e6487cf0e56af0560eb26b06f486648c431a9066 /src | |
| parent | ce774e377881671b968d193440d99884e84039b6 (diff) | |
| download | rust-49e6b7986a49a0ea1cd17a7853f26fe89883ef00.tar.gz rust-49e6b7986a49a0ea1cd17a7853f26fe89883ef00.zip | |
Fix test for non-prefer-dynamic target
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/panic-runtime/need-unwind-got-abort.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/panic-runtime/need-unwind-got-abort.stderr | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/test/ui/panic-runtime/need-unwind-got-abort.rs b/src/test/ui/panic-runtime/need-unwind-got-abort.rs index 3bcc0aa39ac..6752ecf90d2 100644 --- a/src/test/ui/panic-runtime/need-unwind-got-abort.rs +++ b/src/test/ui/panic-runtime/need-unwind-got-abort.rs @@ -2,6 +2,7 @@ // error-pattern:is incompatible with this crate's strategy of `abort` // aux-build:needs-unwind.rs // compile-flags:-C panic=abort +// no-prefer-dynamic extern crate needs_unwind; diff --git a/src/test/ui/panic-runtime/need-unwind-got-abort.stderr b/src/test/ui/panic-runtime/need-unwind-got-abort.stderr index a53b7ffe574..4c71df3ebc1 100644 --- a/src/test/ui/panic-runtime/need-unwind-got-abort.stderr +++ b/src/test/ui/panic-runtime/need-unwind-got-abort.stderr @@ -1,6 +1,4 @@ -error: the linked panic runtime `panic_unwind` is not compiled with this crate's panic strategy `abort` - error: the crate `needs_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort` -error: aborting due to 2 previous errors +error: aborting due to previous error |
