Skip to content

Commit

Permalink
Rollup merge of rust-lang#36060 - paulfanelli:update-e0463-error-msg,…
Browse files Browse the repository at this point in the history
… r=jonathandturner

Update E0463 error message to new format

Fixes rust-lang#35934 as part of rust-lang#35233

r? @jonathandturner
  • Loading branch information
GuillaumeGomez authored Aug 30, 2016
2 parents 29c53a8 + 58ced16 commit cbc259f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/librustc_metadata/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,11 @@ impl<'a> Context<'a> {
"found crate `{}` compiled by an incompatible version of rustc{}",
self.ident, add)
} else {
struct_span_err!(self.sess, self.span, E0463,
"can't find crate for `{}`{}",
self.ident, add)
let mut err = struct_span_err!(self.sess, self.span, E0463,
"can't find crate for `{}`{}",
self.ident, add);
err.span_label(self.span, &format!("can't find crate"));
err
};

if !self.rejected_via_triple.is_empty() {
Expand Down
4 changes: 3 additions & 1 deletion src/test/compile-fail/E0463.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
// except according to those terms.

#![feature(plugin)]
#![plugin(cookie_monster)] //~ ERROR E0463
#![plugin(cookie_monster)]
//~^ ERROR E0463
//~| NOTE can't find crate
extern crate cake_is_a_lie;

fn main() {
Expand Down

0 comments on commit cbc259f

Please sign in to comment.