Skip to content

Commit

Permalink
Rollup merge of #30603 - cmr:extern-failure-error-message, r=Manishearth
Browse files Browse the repository at this point in the history
@ubsan brought up this relatively poor error message. This adds a
help message hinting when the problem actually is, and how to fix
it.
  • Loading branch information
Manishearth committed Dec 29, 2015
2 parents ffe2be3 + 992feab commit 32f1c03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_metadata/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,8 @@ impl<'a> Context<'a> {
}
sess.err(&format!("extern location for {} is of an unknown type: {}",
self.crate_name, loc.display()));
sess.help(&format!("file name should be lib*.rlib or {}*.{}",
dylibname.0, dylibname.1));
false
});

Expand Down

0 comments on commit 32f1c03

Please sign in to comment.