File tree 1 file changed +3
-11
lines changed
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> {
5683
5683
& format ! ( "a default was defined here..." ) ) ;
5684
5684
}
5685
5685
( _, _) => {
5686
- let elems = csearch:: get_item_path ( self , expected. def_id )
5687
- . into_iter ( )
5688
- . map ( |p| p. to_string ( ) )
5689
- . collect :: < Vec < _ > > ( ) ;
5690
5686
self . sess . note (
5691
5687
& format ! ( "a default is defined on `{}`" ,
5692
- elems . join ( "::" ) ) ) ;
5688
+ self . item_path_str ( expected . def_id ) ) ) ;
5693
5689
}
5694
5690
}
5695
5691
@@ -5704,13 +5700,9 @@ impl<'tcx> ctxt<'tcx> {
5704
5700
& format ! ( "a second default was defined here..." ) ) ;
5705
5701
}
5706
5702
( _, _) => {
5707
- let elems = csearch:: get_item_path ( self , found. def_id )
5708
- . into_iter ( )
5709
- . map ( |p| p. to_string ( ) )
5710
- . collect :: < Vec < _ > > ( ) ;
5711
-
5712
5703
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) ) ) ;
5714
5706
}
5715
5707
}
5716
5708
You can’t perform that action at this time.
0 commit comments