-
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 and rename issue-107094 to rmake
- Loading branch information
Showing
4 changed files
with
22 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,18 @@ | ||
// `--version --verbose` should display the git-commit hashes of rustc and rustdoc, but this | ||
// functionality was lost due to #104184. After this feature was returned by #109981, this | ||
// test ensures it will not be broken again. | ||
// See https://github.com/rust-lang/rust/issues/107094 | ||
|
||
//@ needs-git-hash | ||
|
||
use run_make_support::{bare_rustc, bare_rustdoc, regex}; | ||
|
||
fn main() { | ||
let out_rustc = bare_rustc().arg("--version").arg("--verbose").run().stdout_utf8(); | ||
let out_rustdoc = bare_rustdoc().arg("--version").arg("--verbose").run().stdout_utf8(); | ||
let re = | ||
regex::Regex::new(r#"commit-hash: [0-9a-f]{40}" "commit-date: [0-9]{4}-[0-9]{2}-[0-9]{2}"#) | ||
.unwrap(); | ||
assert!(re.is_match(&out_rustc)); | ||
assert!(re.is_match(&out_rustdoc)); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// The attentive may note the underscores in the target triple, making it invalid. This test | ||
// checks that such invalid target specs are rejected by the compiler. | ||
// See https://github.com/rust-lang/rust/issues/33329 | ||
|
||
//@ compile-flags: --target x86_64_unknown-linux-musl | ||
|
||
fn main() {} |