Skip to content

Commit

Permalink
Update E0463 error message to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfanelli committed Aug 29, 2016
1 parent acd3f79 commit 58ced16
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 58ced16

Please sign in to comment.