File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2970,9 +2970,9 @@ impl<'test> TestCx<'test> {
2970
2970
fn check_rustdoc_test_option ( & self , res : ProcRes ) {
2971
2971
let mut other_files = Vec :: new ( ) ;
2972
2972
let mut files: HashMap < String , Vec < usize > > = HashMap :: new ( ) ;
2973
- let testpath = fs:: canonicalize ( & self . testpaths . file ) . expect ( "failed to canonicalize" ) ;
2974
- let testpath = testpath . to_str ( ) . unwrap ( ) . replace ( '\\' , "/" ) ;
2975
- files. insert ( testpath , self . get_lines ( & self . testpaths . file , Some ( & mut other_files) ) ) ;
2973
+ let normalized = fs:: canonicalize ( & self . testpaths . file ) . expect ( "failed to canonicalize" ) ;
2974
+ let normalized = normalized . to_str ( ) . unwrap ( ) . replace ( '\\' , "/" ) ;
2975
+ files. insert ( normalized , self . get_lines ( & self . testpaths . file , Some ( & mut other_files) ) ) ;
2976
2976
for other_file in other_files {
2977
2977
let mut path = self . testpaths . file . clone ( ) ;
2978
2978
path. set_file_name ( & format ! ( "{}.rs" , other_file) ) ;
You can’t perform that action at this time.
0 commit comments