@@ -5471,7 +5471,8 @@ impl<'tcx> ctxt<'tcx> {
5471
5471
expected. ty,
5472
5472
found. ty) ) ;
5473
5473
5474
- match ( expected. def_id . krate == ast:: LOCAL_CRATE , self . map . opt_span ( expected. def_id . node ) ) {
5474
+ match ( expected. def_id . krate == ast:: LOCAL_CRATE ,
5475
+ self . map . opt_span ( expected. def_id . node ) ) {
5475
5476
( true , Some ( span) ) => {
5476
5477
self . sess . span_note ( span,
5477
5478
& format ! ( "a default was defined here..." ) ) ;
@@ -5482,15 +5483,17 @@ impl<'tcx> ctxt<'tcx> {
5482
5483
. map ( |p| p. to_string ( ) )
5483
5484
. collect :: < Vec < _ > > ( ) ;
5484
5485
self . sess . note (
5485
- & format ! ( "a default is defined on `{}`" ,
5486
+ & format ! ( "a default is defined on `{}`" ,
5486
5487
elems. join( "::" ) ) ) ;
5487
5488
}
5488
5489
}
5489
5490
5490
- self . sess . span_note ( expected. origin_span ,
5491
- & format ! ( "...that was applied to an unconstrained type variable here" ) ) ;
5491
+ self . sess . span_note (
5492
+ expected. origin_span ,
5493
+ & format ! ( "...that was applied to an unconstrained type variable here" ) ) ;
5492
5494
5493
- match ( found. def_id . krate == ast:: LOCAL_CRATE , self . map . opt_span ( found. def_id . node ) ) {
5495
+ match ( found. def_id . krate == ast:: LOCAL_CRATE ,
5496
+ self . map . opt_span ( found. def_id . node ) ) {
5494
5497
( true , Some ( span) ) => {
5495
5498
self . sess . span_note ( span,
5496
5499
& format ! ( "a second default was defined here..." ) ) ;
@@ -5506,8 +5509,9 @@ impl<'tcx> ctxt<'tcx> {
5506
5509
}
5507
5510
}
5508
5511
5509
- self . sess . span_note ( found. origin_span ,
5510
- & format ! ( "...that also applies to the same type variable here" ) ) ;
5512
+ self . sess . span_note (
5513
+ found. origin_span ,
5514
+ & format ! ( "...that also applies to the same type variable here" ) ) ;
5511
5515
}
5512
5516
_ => { }
5513
5517
}
0 commit comments