@@ -307,7 +307,8 @@ impl<'a> Context<'a> {
307
307
format ! ( "found possibly newer version of crate `{}`" ,
308
308
self . ident)
309
309
} else if self . rejected_via_triple . len ( ) > 0 {
310
- format ! ( "found incorrect triple for crate `{}`" , self . ident)
310
+ format ! ( "couldn't find crate `{}` with expected target triple {}" ,
311
+ self . ident, self . triple)
311
312
} else {
312
313
format ! ( "can't find crate for `{}`" , self . ident)
313
314
} ;
@@ -318,15 +319,12 @@ impl<'a> Context<'a> {
318
319
} ;
319
320
self . sess . span_err ( self . span , message. as_slice ( ) ) ;
320
321
321
- let mismatches = self . rejected_via_triple . iter ( ) ;
322
322
if self . rejected_via_triple . len ( ) > 0 {
323
- self . sess . span_note ( self . span ,
324
- format ! ( "expected triple of {}" ,
325
- self . triple) . as_slice ( ) ) ;
323
+ let mismatches = self . rejected_via_triple . iter ( ) ;
326
324
for ( i, & CrateMismatch { ref path, ref got } ) in mismatches. enumerate ( ) {
327
325
self . sess . fileline_note ( self . span ,
328
- format ! ( "crate `{}` path {} {}, triple {}: {}" ,
329
- self . ident, "#" , i+1 , got, path. display( ) ) . as_slice ( ) ) ;
326
+ format ! ( "crate `{}`, path # {}, triple {}: {}" ,
327
+ self . ident, i+1 , got, path. display( ) ) . as_slice ( ) ) ;
330
328
}
331
329
}
332
330
if self . rejected_via_hash . len ( ) > 0 {
0 commit comments