Update E0463 error message to new format
This commit is contained in:
parent
acd3f796d2
commit
58ced1635b
2 changed files with 8 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue