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> {
2880
2880
}
2881
2881
}
2882
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) ;
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) ;
2885
2887
match File :: create ( & output_file) . and_then ( |mut f| f. write_all ( actual. as_bytes ( ) ) ) {
2886
2888
Ok ( ( ) ) => { }
2887
2889
Err ( e) => self . fatal ( & format ! (
You can’t perform that action at this time.
0 commit comments