diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-03-20 20:00:25 -0700 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-03-21 14:20:28 -0700 |
| commit | bfae41d7b01f016fab65ed4be9ecdb5c31a97f09 (patch) | |
| tree | c8eb5245a212c61d937c21893e44c235e7076ccd /compiler/rustc_resolve/src | |
| parent | 61edfd591cedff66fca639c02f66984f6271e5a6 (diff) | |
| download | rust-bfae41d7b01f016fab65ed4be9ecdb5c31a97f09.tar.gz rust-bfae41d7b01f016fab65ed4be9ecdb5c31a97f09.zip | |
Fix ICE with `use clippy::a::b;`
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/imports.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/imports.rs b/compiler/rustc_resolve/src/imports.rs index 61f4c00a4ca..26858915f45 100644 --- a/compiler/rustc_resolve/src/imports.rs +++ b/compiler/rustc_resolve/src/imports.rs @@ -955,14 +955,14 @@ impl<'a, 'b> ImportResolver<'a, 'b> { } return None; } - PathResult::NonModule(path_res) if path_res.base_res() == Res::Err => { + PathResult::NonModule(_) => { if no_ambiguity { assert!(import.imported_module.get().is_none()); } // The error was already reported earlier. return None; } - PathResult::Indeterminate | PathResult::NonModule(..) => unreachable!(), + PathResult::Indeterminate => unreachable!(), }; let (ident, target, source_bindings, target_bindings, type_ns_only) = match import.kind { |
