File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -965,8 +965,9 @@ impl<'a> LocalCrateReader<'a> {
965965 Some ( "dylib" ) => cstore:: NativeUnknown ,
966966 Some ( "framework" ) => cstore:: NativeFramework ,
967967 Some ( k) => {
968- span_err ! ( self . sess, m. span, E0458 ,
969- "unknown kind: `{}`" , k) ;
968+ struct_span_err ! ( self . sess, m. span, E0458 ,
969+ "unknown kind: `{}`" , k)
970+ . span_label ( m. span , & format ! ( "unknown kind" ) ) . emit ( ) ;
970971 cstore:: NativeUnknown
971972 }
972973 None => cstore:: NativeUnknown
Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111#[ link( kind = "wonderful_unicorn" ) ] extern { } //~ ERROR E0458
12- //~^ ERROR E0459
12+ //~| NOTE unknown kind
13+ //~| ERROR E0459
14+ //~| NOTE missing `name` argument
1315
1416fn main ( ) {
1517}
You can’t perform that action at this time.
0 commit comments