about summary refs log tree commit diff
path: root/src/test/ui/panic-handler
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2021-04-29 17:04:16 +0000
committerTyler Mandry <tmandry@gmail.com>2021-05-06 02:49:34 +0000
commite1a8ecf771485d517010c66b8532c39635725813 (patch)
treef57d6992ee1c5742f9dd051f4e76af1afbd336db /src/test/ui/panic-handler
parent568d9c5547c275de2b1533bc7dd8d3d018b17bec (diff)
downloadrust-e1a8ecf771485d517010c66b8532c39635725813.tar.gz
rust-e1a8ecf771485d517010c66b8532c39635725813.zip
Add needs-unwind to tests
Diffstat (limited to 'src/test/ui/panic-handler')
-rw-r--r--src/test/ui/panic-handler/weak-lang-item.rs1
-rw-r--r--src/test/ui/panic-handler/weak-lang-item.stderr2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/panic-handler/weak-lang-item.rs b/src/test/ui/panic-handler/weak-lang-item.rs
index 3fa3822831b..df31e614cf8 100644
--- a/src/test/ui/panic-handler/weak-lang-item.rs
+++ b/src/test/ui/panic-handler/weak-lang-item.rs
@@ -1,6 +1,7 @@
 // aux-build:weak-lang-items.rs
 // error-pattern: `#[panic_handler]` function required, but not found
 // error-pattern: language item required, but not found: `eh_personality`
+// needs-unwind since it affects the error output
 // ignore-emscripten compiled with panic=abort, personality not required
 
 #![no_std]
diff --git a/src/test/ui/panic-handler/weak-lang-item.stderr b/src/test/ui/panic-handler/weak-lang-item.stderr
index 68e3e21df3e..1f14b20e451 100644
--- a/src/test/ui/panic-handler/weak-lang-item.stderr
+++ b/src/test/ui/panic-handler/weak-lang-item.stderr
@@ -1,5 +1,5 @@
 error[E0259]: the name `core` is defined multiple times
-  --> $DIR/weak-lang-item.rs:8:1
+  --> $DIR/weak-lang-item.rs:9:1
    |
 LL | extern crate core;
    | ^^^^^^^^^^^^^^^^^^ `core` reimported here