-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite separate-link-fail to rmake.rs
- Loading branch information
Showing
4 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// rustc usually wants Rust code as its input. The flag `link-only` is one | ||
// exception, where a .rlink file is instead requested. The compiler should | ||
// fail when the user is wrongly passing the original Rust code | ||
// instead of the generated .rlink file when this flag is on. | ||
// https://github.com/rust-lang/rust/issues/95297 | ||
|
||
use run_make_support::rustc; | ||
|
||
fn main() { | ||
rustc() | ||
.arg("-Zlink-only") | ||
.input("foo.rs") | ||
.run_fail() | ||
.assert_stderr_contains("The input does not look like a .rlink file"); | ||
} |