File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed 
tests/run-make/const-prop-lint Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ run-make/compiler-lookup-paths-2/Makefile
2121run-make/compiler-lookup-paths/Makefile
2222run-make/compiler-rt-works-on-mingw/Makefile
2323run-make/compressed-debuginfo/Makefile
24- run-make/const-prop-lint/Makefile
2524run-make/const_fn_mir/Makefile
2625run-make/crate-data-smoke/Makefile
2726run-make/crate-hash-rustc-version/Makefile
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 1+ // Tests that const prop lints interrupting codegen don't leave `.o` files around. 
2+ 
3+ use  std:: fs; 
4+ 
5+ use  run_make_support:: { rustc,  tmp_dir} ; 
6+ 
7+ fn  main ( )  { 
8+     rustc ( ) . input ( "input.rs" ) . run_fail_assert_exit_code ( 1 ) ; 
9+ 
10+     for  entry in  fs:: read_dir ( tmp_dir ( ) ) . unwrap ( )  { 
11+         let  entry = entry. unwrap ( ) ; 
12+         let  path = entry. path ( ) ; 
13+ 
14+         if  path. is_file ( )  && path. extension ( ) . is_some_and ( |ext| ext == "o" )  { 
15+             panic ! ( "there should not be `.o` files!" ) ; 
16+         } 
17+     } 
18+ } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments