Update E0463 error message to new format

This commit is contained in:
Paul Fanelli 2016-08-28 00:38:04 +00:00
parent acd3f796d2
commit 58ced1635b
2 changed files with 8 additions and 4 deletions

View file

@ -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() {

View file

@ -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() {