1
Fork 0

Improve wording for external crate resolution error

I think it reads better this way.
This commit is contained in:
Camelid 2020-09-30 15:52:13 -07:00
parent 867bd42c38
commit 2c5e2a6fc6
3 changed files with 3 additions and 3 deletions

View file

@ -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.