File tree Expand file tree Collapse file tree 5 files changed +37
-18
lines changed 
version-verbose-commit-hash Expand file tree Collapse file tree 5 files changed +37
-18
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ run-make/foreign-rust-exceptions/Makefile
2727run-make/incr-add-rust-src-component/Makefile
2828run-make/incr-foreign-head-span/Makefile
2929run-make/interdependent-c-libraries/Makefile
30- run-make/issue-107094/Makefile
3130run-make/issue-15460/Makefile
3231run-make/issue-35164/Makefile
3332run-make/issue-36710/Makefile
Original file line number Diff line number Diff line change 1- // When the TMP or TMPDIR variable is set to an invalid or non-existing directory, 
2- // this used to cause an internal compiler error (ICE). After the addition of proper 
3- // error handling in #28430, this test checks that the expected message is printed. 
1+ // When the TMP (on Windows) or TMPDIR (on Unix) variable is set to an invalid 
2+ // or non-existing directory, this used to cause an internal compiler error (ICE). After the 
3+ // addition of proper error handling in #28430, this test checks that the expected message is 
4+ // printed. 
45// See https://github.com/rust-lang/rust/issues/14698 
56
6- use  run_make_support:: rustc; 
7+ use  run_make_support:: { is_windows ,   rustc} ; 
78
89// NOTE: This is not a UI test despite its simplicity, as the error message contains a path 
910// with some variability that is difficult to normalize 
1011
1112fn  main ( )  { 
12-     rustc ( ) 
13-         . input ( "foo.rs" ) 
14-         . env ( "TMP" ,  "fake" ) 
15-         . env ( "TMPDIR" ,  "fake" ) 
16-         . run_fail ( ) 
17-         . assert_stderr_contains ( "couldn't create a temp dir" ) ; 
13+     let  mut  rustc = rustc ( ) ; 
14+     if  is_windows ( )  { 
15+         rustc. env ( "TMP" ,  "fake" ) ; 
16+     }  else  { 
17+         rustc. env ( "TMPDIR" ,  "fake" ) ; 
18+     } 
19+     rustc. input ( "foo.rs" ) . run_fail ( ) . assert_stderr_contains ( "couldn't create a temp dir" ) ; 
1820} 
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