@@ -2046,50 +2046,10 @@ impl<'test> TestCx<'test> {
2046
2046
}
2047
2047
2048
2048
fn fatal_proc_rec ( & self , err : & str , proc_res : & ProcRes ) -> ! {
2049
- self . try_print_open_handles ( ) ;
2050
2049
self . error ( err) ;
2051
2050
proc_res. fatal ( None ) ;
2052
2051
}
2053
2052
2054
- // This function is a poor man's attempt to debug rust-lang/rust#38620, if
2055
- // that's closed then this should be deleted
2056
- //
2057
- // This is a very "opportunistic" debugging attempt, so we ignore all
2058
- // errors here.
2059
- fn try_print_open_handles ( & self ) {
2060
- if !cfg ! ( windows) {
2061
- return ;
2062
- }
2063
- if self . config . mode != Incremental {
2064
- return ;
2065
- }
2066
-
2067
- let filename = match self . testpaths . file . file_stem ( ) {
2068
- Some ( path) => path,
2069
- None => return ,
2070
- } ;
2071
-
2072
- let mut cmd = Command :: new ( "handle.exe" ) ;
2073
- cmd. arg ( "-a" ) . arg ( "-u" ) ;
2074
- cmd. arg ( filename) ;
2075
- cmd. arg ( "-nobanner" ) ;
2076
- cmd. stdout ( Stdio :: piped ( ) ) ;
2077
- cmd. stderr ( Stdio :: piped ( ) ) ;
2078
- let output = match cmd. spawn ( ) . and_then ( read2_abbreviated) {
2079
- Ok ( output) => output,
2080
- Err ( _) => return ,
2081
- } ;
2082
- println ! ( "---------------------------------------------------" ) ;
2083
- println ! ( "ran extra command to debug rust-lang/rust#38620: " ) ;
2084
- println ! ( "{:?}" , cmd) ;
2085
- println ! ( "result: {}" , output. status) ;
2086
- println ! ( "--- stdout ----------------------------------------" ) ;
2087
- println ! ( "{}" , String :: from_utf8_lossy( & output. stdout) ) ;
2088
- println ! ( "--- stderr ----------------------------------------" ) ;
2089
- println ! ( "{}" , String :: from_utf8_lossy( & output. stderr) ) ;
2090
- println ! ( "---------------------------------------------------" ) ;
2091
- }
2092
-
2093
2053
// codegen tests (using FileCheck)
2094
2054
2095
2055
fn compile_test_and_save_ir ( & self ) -> ProcRes {
0 commit comments