Auto merge of #77379 - camelid:improve-wording-crate-resolution-error, r=davidtwco

Improve wording for external crate resolution error

I think it reads better this way.
This commit is contained in:
bors 2020-10-01 03:28:50 +00:00
commit 3bbc443cc6
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.

View File

@ -2,7 +2,7 @@ error[E0432]: unresolved import `ycrate`
--> $DIR/non-existent-3.rs:3:5
|
LL | use ycrate;
| ^^^^^^ no `ycrate` external crate
| ^^^^^^ no external crate `ycrate`
error: aborting due to previous error

View File

@ -2,7 +2,7 @@ error[E0432]: unresolved import `alloc`
--> $DIR/not-allowed.rs:5:5
|
LL | use alloc;
| ^^^^^ no `alloc` external crate
| ^^^^^ no external crate `alloc`
error: aborting due to previous error