File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2880,8 +2880,10 @@ impl<'test> TestCx<'test> {
28802880 }
28812881 }
28822882
2883- let expected_output_path = self . expected_output_path ( kind) ;
2884- let output_file = self . output_base_name ( ) . with_file_name ( & expected_output_path) ;
2883+ let expected_output = self . expected_output_path ( kind) ;
2884+ // #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) ;
28852887 match File :: create ( & output_file) . and_then ( |mut f| f. write_all ( actual. as_bytes ( ) ) ) {
28862888 Ok ( ( ) ) => { }
28872889 Err ( e) => self . fatal ( & format ! (
You can’t perform that action at this time.
0 commit comments