Improve wording for external crate resolution error
I think it reads better this way.
This commit is contained in:
parent
867bd42c38
commit
2c5e2a6fc6
3 changed files with 3 additions and 3 deletions
|
@ -1157,7 +1157,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
|
|||
}
|
||||
_ => {
|
||||
if !ident.is_path_segment_keyword() {
|
||||
format!("no `{}` external crate", ident)
|
||||
format!("no external crate `{}`", ident)
|
||||
} else {
|
||||
// HACK(eddyb) this shows up for `self` & `super`, which
|
||||
// should work instead - for now keep the same error message.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue