File tree Expand file tree Collapse file tree 10 files changed +71
-32
lines changed Expand file tree Collapse file tree 10 files changed +71
-32
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ run-make/issue-36710/Makefile
5454run-make/issue-47551/Makefile
5555run-make/issue-69368/Makefile
5656run-make/issue-84395-lto-embed-bitcode/Makefile
57- run-make/issue-85401-static-mir/Makefile
5857run-make/issue-88756-default-output/Makefile
5958run-make/issue-97463-abi-param-passing/Makefile
6059run-make/jobserver-error/Makefile
@@ -76,7 +75,6 @@ run-make/macos-deployment-target/Makefile
7675run-make/macos-fat-archive/Makefile
7776run-make/manual-link/Makefile
7877run-make/min-global-align/Makefile
79- run-make/missing-crate-dependency/Makefile
8078run-make/native-link-modifier-bundle/Makefile
8179run-make/native-link-modifier-whole-archive/Makefile
8280run-make/no-alloc-shim/Makefile
@@ -122,5 +120,4 @@ run-make/test-benches/Makefile
122120run-make/thumb-none-cortex-m/Makefile
123121run-make/thumb-none-qemu/Makefile
124122run-make/translation/Makefile
125- run-make/unstable-flag-required/Makefile
126123run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ // Trying to access mid-level internal representation (MIR) in statics 
2+ // used to cause an internal compiler error (ICE), now handled as a proper 
3+ // error since #100211. This test checks that the correct error is printed 
4+ // during the linking process, and not the ICE. 
5+ // See https://github.com/rust-lang/rust/issues/85401 
6+ 
7+ use  run_make_support:: { bin_name,  rust_lib_name,  rustc} ; 
8+ 
9+ fn  main ( )  { 
10+     rustc ( ) 
11+         . crate_type ( "rlib" ) 
12+         . crate_name ( "foo" ) 
13+         . arg ( "-Crelocation-model=pic" ) 
14+         . edition ( "2018" ) 
15+         . input ( "foo.rs" ) 
16+         . arg ( "-Zalways-encode-mir=yes" ) 
17+         . emit ( "metadata" ) 
18+         . output ( "libfoo.rmeta" ) 
19+         . run ( ) ; 
20+     rustc ( ) 
21+         . crate_type ( "rlib" ) 
22+         . crate_name ( "bar" ) 
23+         . arg ( "-Crelocation-model=pic" ) 
24+         . edition ( "2018" ) 
25+         . input ( "bar.rs" ) 
26+         . output ( rust_lib_name ( "bar" ) ) 
27+         . extern_ ( "foo" ,  "libfoo.rmeta" ) 
28+         . run ( ) ; 
29+     rustc ( ) 
30+         . crate_type ( "bin" ) 
31+         . crate_name ( "baz" ) 
32+         . arg ( "-Crelocation-model=pic" ) 
33+         . edition ( "2018" ) 
34+         . input ( "baz.rs" ) 
35+         . output ( bin_name ( "baz" ) ) 
36+         . extern_ ( "bar" ,  rust_lib_name ( "bar" ) ) 
37+         . run_fail ( ) 
38+         . assert_stderr_contains ( 
39+             "crate `foo` required to be available in rlib format, but was not found in this form" , 
40+         ) 
41+         . assert_stdout_not_contains ( "internal compiler error" ) ; 
42+ } 
  Load Diff This file was deleted. 
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 1+ // A simple smoke test to check that rustc fails compilation 
2+ // and outputs a helpful message when a dependency is missing 
3+ // in a dependency chain. 
4+ // See https://github.com/rust-lang/rust/issues/12146 
5+ 
6+ use  run_make_support:: { rfs,  rust_lib_name,  rustc} ; 
7+ 
8+ fn  main ( )  { 
9+     rustc ( ) . crate_type ( "rlib" ) . input ( "crateA.rs" ) . run ( ) ; 
10+     rustc ( ) . crate_type ( "rlib" ) . input ( "crateB.rs" ) . run ( ) ; 
11+     rfs:: remove_file ( rust_lib_name ( "crateA" ) ) ; 
12+     // Ensure that crateC fails to compile, as the crateA dependency is missing. 
13+     rustc ( ) 
14+         . input ( "crateC.rs" ) 
15+         . run_fail ( ) 
16+         . assert_stderr_contains ( "can't find crate for `crateA` which `crateB` depends on" ) ; 
17+ } 
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 1+ // The flag `--output-format` is unauthorized on beta and stable releases, which led 
2+ // to confusion for maintainers doing testing on nightly. Tying it to an unstable flag 
3+ // elucidates this, and this test checks that `--output-format` cannot be passed on its 
4+ // own. 
5+ // See https://github.com/rust-lang/rust/pull/82497 
6+ 
7+ use  run_make_support:: { diff,  rustdoc} ; 
8+ 
9+ fn  main ( )  { 
10+     let  out = rustdoc ( ) . output_format ( "json" ) . input ( "x.html" ) . run_fail ( ) . stderr_utf8 ( ) ; 
11+     diff ( ) . expected_file ( "output-format-json.stderr" ) . actual_text ( "actual-json" ,  out) . run ( ) ; 
12+ } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments