Skip to content

Commit a5894ad

Browse files
committed
Align compiletests with immediate-abort panic strategy
1 parent 40cb4eb commit a5894ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/compiletests/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ fn rust_flags(codegen_backend_path: &Path, target_arch: &str) -> String {
403403
"-Cdebuginfo=2",
404404
"-Cembed-bitcode=no",
405405
&format!("-Ctarget-feature=+{target_arch}"),
406-
"-Cpanic=abort",
406+
"-Cpanic=immediate-abort",
407407
"-Cno-redzone=yes",
408408
&format!("-Cllvm-args=-arch={target_arch}"),
409409
"-Cllvm-args=--override-libm",

tests/compiletests/ui/lang/compile_fail.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std`
1+
error[E0433]: cannot find module or crate `std` in this scope
22
--> $DIR/compile_fail.rs:5:14
33
|
44
LL | let _s = std::fs::File::create("foo.txt");

0 commit comments

Comments
 (0)