Skip to content

Commit dfba1b5

Browse files
committed
rewrite separate-link-fail to rmake.rs
1 parent 10db8c7 commit dfba1b5

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ run-make/rustdoc-io-error/Makefile
202202
run-make/sanitizer-cdylib-link/Makefile
203203
run-make/sanitizer-dylib-link/Makefile
204204
run-make/sanitizer-staticlib-link/Makefile
205-
run-make/separate-link-fail/Makefile
206205
run-make/sepcomp-cci-copies/Makefile
207206
run-make/sepcomp-inlining/Makefile
208207
run-make/sepcomp-separate/Makefile

tests/run-make/separate-link-fail/Makefile

-7
This file was deleted.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fn main() {}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// rustc usually wants Rust code as its input. The flag `link-only` is one
2+
// exception, where a .rlink file is instead requested. The compiler should
3+
// fail when the user is wrongly passing the original Rust code
4+
// instead of the generated .rlink file when this flag is on.
5+
// https://github.com/rust-lang/rust/issues/95297
6+
7+
use run_make_support::rustc;
8+
9+
fn main() {
10+
rustc()
11+
.arg("-Zlink-only")
12+
.input("foo.rs")
13+
.run_fail()
14+
.assert_stderr_contains("The input does not look like a .rlink file");
15+
}

0 commit comments

Comments
 (0)