This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-8
lines changed
version-verbose-commit-hash Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ run-make/foreign-rust-exceptions/Makefile
4343run-make/incr-add-rust-src-component/Makefile
4444run-make/incr-foreign-head-span/Makefile
4545run-make/interdependent-c-libraries/Makefile
46- run-make/issue-107094/Makefile
4746run-make/issue-15460/Makefile
4847run-make/issue-18943/Makefile
4948run-make/issue-22131/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // `--version --verbose` should display the git-commit hashes of rustc and rustdoc, but this
2+ // functionality was lost due to #104184. After this feature was returned by #109981, this
3+ // test ensures it will not be broken again.
4+ // See https://github.com/rust-lang/rust/issues/107094
5+
6+ //@ needs-git-hash
7+
8+ use run_make_support:: { bare_rustc, bare_rustdoc, regex} ;
9+
10+ fn main ( ) {
11+ let out_rustc =
12+ bare_rustc ( ) . arg ( "--version" ) . arg ( "--verbose" ) . run ( ) . stdout_utf8 ( ) . to_lowercase ( ) ;
13+ let out_rustdoc =
14+ bare_rustdoc ( ) . arg ( "--version" ) . arg ( "--verbose" ) . run ( ) . stdout_utf8 ( ) . to_lowercase ( ) ;
15+ let re =
16+ regex:: Regex :: new ( r#"commit-hash: [0-9a-f]{40}\ncommit-date: [0-9]{4}-[0-9]{2}-[0-9]{2}"# )
17+ . unwrap ( ) ;
18+ assert ! ( re. is_match( & out_rustc) ) ;
19+ assert ! ( re. is_match( & out_rustdoc) ) ;
20+ }
Original file line number Diff line number Diff line change 1+ // The attentive may note the underscores in the target triple, making it invalid. This test
2+ // checks that such invalid target specs are rejected by the compiler.
3+ // See https://github.com/rust-lang/rust/issues/33329
4+
5+ //@ needs-llvm-components: x86
16//@ compile-flags: --target x86_64_unknown-linux-musl
27
38fn main ( ) { }
You can’t perform that action at this time.
0 commit comments