Fix ICE with use clippy:🅰️:b;
This commit is contained in:
parent
61edfd591c
commit
bfae41d7b0
3 changed files with 37 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue