From 9859ebeebcc0688d23511f67d4b478587493abce Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Wed, 22 Oct 2025 00:16:03 -0400 Subject: [PATCH] Compiletest: pass -Zui-testing to rustc This is the dual of https://github.com/Rust-GPU/rust-gpu/pull/447 --- tests/compiletests/src/main.rs | 1 + tests/compiletests/ui/lang/compile_fail.stderr | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/compiletests/src/main.rs b/tests/compiletests/src/main.rs index c1cdb206..927a8c06 100644 --- a/tests/compiletests/src/main.rs +++ b/tests/compiletests/src/main.rs @@ -122,6 +122,7 @@ impl Runner { "-Zunstable-options", "-Zcrate-attr=no_std", "-Zcrate-attr=feature(abi_ptx)", + "-Zui-testing", ] .join(" ") } diff --git a/tests/compiletests/ui/lang/compile_fail.stderr b/tests/compiletests/ui/lang/compile_fail.stderr index 16555a74..3d4332bb 100644 --- a/tests/compiletests/ui/lang/compile_fail.stderr +++ b/tests/compiletests/ui/lang/compile_fail.stderr @@ -1,10 +1,10 @@ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std` - --> $DIR/compile_fail.rs:5:14 - | -5 | let _s = std::fs::File::create("foo.txt"); - | ^^^ use of unresolved module or unlinked crate `std` - | - = help: you might be missing a crate named `std` + --> $DIR/compile_fail.rs:5:14 + | +LL | let _s = std::fs::File::create("foo.txt"); + | ^^^ use of unresolved module or unlinked crate `std` + | + = help: you might be missing a crate named `std` error: aborting due to 1 previous error