Skip to content

Commit b551fed

Browse files
committed
Compiletest: pass -Zui-testing to rustc
This is the dual of Rust-GPU/rust-gpu#447
1 parent 296c182 commit b551fed

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

tests/compiletests/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ impl Runner {
122122
"-Zunstable-options",
123123
"-Zcrate-attr=no_std",
124124
"-Zcrate-attr=feature(abi_ptx)",
125+
"-Zui-testing",
125126
]
126127
.join(" ")
127128
}

tests/compiletests/ui/lang/compile_fail.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `std`
2-
--> $DIR/compile_fail.rs:5:14
3-
|
4-
5 | let _s = std::fs::File::create("foo.txt");
5-
| ^^^ use of unresolved module or unlinked crate `std`
6-
|
7-
= help: you might be missing a crate named `std`
2+
--> $DIR/compile_fail.rs:5:14
3+
|
4+
LL | let _s = std::fs::File::create("foo.txt");
5+
| ^^^ use of unresolved module or unlinked crate `std`
6+
|
7+
= help: you might be missing a crate named `std`
88

99
error: aborting due to 1 previous error
1010

0 commit comments

Comments
 (0)