File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -5683,13 +5683,9 @@ impl<'tcx> ctxt<'tcx> {
56835683 & format ! ( "a default was defined here..." ) ) ;
56845684 }
56855685 ( _, _) => {
5686- let elems = csearch:: get_item_path ( self , expected. def_id )
5687- . into_iter ( )
5688- . map ( |p| p. to_string ( ) )
5689- . collect :: < Vec < _ > > ( ) ;
56905686 self . sess . note (
56915687 & format ! ( "a default is defined on `{}`" ,
5692- elems . join ( "::" ) ) ) ;
5688+ self . item_path_str ( expected . def_id ) ) ) ;
56935689 }
56945690 }
56955691
@@ -5704,13 +5700,9 @@ impl<'tcx> ctxt<'tcx> {
57045700 & format ! ( "a second default was defined here..." ) ) ;
57055701 }
57065702 ( _, _) => {
5707- let elems = csearch:: get_item_path ( self , found. def_id )
5708- . into_iter ( )
5709- . map ( |p| p. to_string ( ) )
5710- . collect :: < Vec < _ > > ( ) ;
5711-
57125703 self . sess . note (
5713- & format ! ( "a second default is defined on `{}`" , elems. join( " " ) ) ) ;
5704+ & format ! ( "a second default is defined on `{}`" ,
5705+ self . item_path_str( found. def_id) ) ) ;
57145706 }
57155707 }
57165708
You can’t perform that action at this time.
0 commit comments