Skip to content

Commit c26f6db

Browse files
committed
Remove workaround code for a closed issue
1 parent dc8fec2 commit c26f6db

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,50 +2046,10 @@ impl<'test> TestCx<'test> {
20462046
}
20472047

20482048
fn fatal_proc_rec(&self, err: &str, proc_res: &ProcRes) -> ! {
2049-
self.try_print_open_handles();
20502049
self.error(err);
20512050
proc_res.fatal(None);
20522051
}
20532052

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-
20932053
// codegen tests (using FileCheck)
20942054

20952055
fn compile_test_and_save_ir(&self) -> ProcRes {

0 commit comments

Comments
 (0)