Improve wording for external crate resolution error
I think it reads better this way.
This commit is contained in:
parent
867bd42c38
commit
2c5e2a6fc6
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue