We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f602dbb + 0efae08 commit 7ec95c0Copy full SHA for 7ec95c0
collector/src/bin/rustc-fake.rs
@@ -355,11 +355,18 @@ fn main() {
355
356
"Eprintln" => {
357
let mut cmd = Command::new(tool);
358
+
359
+ let file_path = "eprintln";
360
cmd.args(args).stderr(std::process::Stdio::from(
- std::fs::File::create("eprintln").unwrap(),
361
+ std::fs::File::create(file_path).unwrap(),
362
));
363
- run_with_determinism_env(cmd);
364
+ determinism_env(&mut cmd);
365
+ let status = cmd.status().expect("failed to spawn");
366
+ if !status.success() {
367
+ let stderr = std::fs::read_to_string(file_path).unwrap_or_default();
368
+ panic!("command did not complete successfully: {cmd:?}\nstderr:\n{stderr}");
369
+ }
370
}
371
372
"LlvmLines" => {
0 commit comments