Fix ICE with use clippy:🅰️:b;
This commit is contained in:
parent
61edfd591c
commit
bfae41d7b0
3 changed files with 37 additions and 2 deletions
7
src/test/ui/imports/tool-mod-child.rs
Normal file
7
src/test/ui/imports/tool-mod-child.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use clippy::a; //~ ERROR unresolved import `clippy`
|
||||
use clippy::a::b; //~ ERROR failed to resolve: maybe a missing crate `clippy`?
|
||||
|
||||
use rustdoc::a; //~ ERROR unresolved import `rustdoc`
|
||||
use rustdoc::a::b; //~ ERROR failed to resolve: maybe a missing crate `rustdoc`?
|
||||
|
||||
fn main() {}
|
||||
28
src/test/ui/imports/tool-mod-child.stderr
Normal file
28
src/test/ui/imports/tool-mod-child.stderr
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
error[E0433]: failed to resolve: maybe a missing crate `clippy`?
|
||||
--> $DIR/tool-mod-child.rs:2:5
|
||||
|
|
||||
LL | use clippy::a::b;
|
||||
| ^^^^^^ maybe a missing crate `clippy`?
|
||||
|
||||
error[E0432]: unresolved import `clippy`
|
||||
--> $DIR/tool-mod-child.rs:1:5
|
||||
|
|
||||
LL | use clippy::a;
|
||||
| ^^^^^^ maybe a missing crate `clippy`?
|
||||
|
||||
error[E0433]: failed to resolve: maybe a missing crate `rustdoc`?
|
||||
--> $DIR/tool-mod-child.rs:5:5
|
||||
|
|
||||
LL | use rustdoc::a::b;
|
||||
| ^^^^^^^ maybe a missing crate `rustdoc`?
|
||||
|
||||
error[E0432]: unresolved import `rustdoc`
|
||||
--> $DIR/tool-mod-child.rs:4:5
|
||||
|
|
||||
LL | use rustdoc::a;
|
||||
| ^^^^^^^ maybe a missing crate `rustdoc`?
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
Some errors have detailed explanations: E0432, E0433.
|
||||
For more information about an error, try `rustc --explain E0432`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue