We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ede038 + 042e1e0 commit 53232e5Copy full SHA for 53232e5
src/tools/compiletest/src/runtest.rs
@@ -2880,8 +2880,10 @@ impl<'test> TestCx<'test> {
2880
}
2881
2882
2883
- let expected_output_path = self.expected_output_path(kind);
2884
- let output_file = self.output_base_name().with_file_name(&expected_output_path);
+ let expected_output = self.expected_output_path(kind);
+ // #50113: output is abspath; only want filename component.
2885
+ let expected_output = expected_output.file_name().expect("output path requires file name");
2886
+ let output_file = self.output_base_name().with_file_name(&expected_output);
2887
match File::create(&output_file).and_then(|mut f| f.write_all(actual.as_bytes())) {
2888
Ok(()) => {}
2889
Err(e) => self.fatal(&format!(
0 commit comments