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> {
29702970 fn check_rustdoc_test_option ( & self , res : ProcRes ) {
29712971 let mut other_files = Vec :: new ( ) ;
29722972 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) ) ) ;
29762976 for other_file in other_files {
29772977 let mut path = self . testpaths . file . clone ( ) ;
29782978 path. set_file_name ( & format ! ( "{}.rs" , other_file) ) ;
You can’t perform that action at this time.
0 commit comments