Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update E0463 error message to new format #36060

Merged
merged 1 commit into from
Aug 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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