fix(resolve): skip panic when resolution is dummy
This commit is contained in:
parent
cb6ab9516b
commit
02f1f6a8a8
3 changed files with 19 additions and 1 deletions
|
@ -990,7 +990,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
});
|
||||
let res = binding.res();
|
||||
if let Ok(initial_res) = initial_res {
|
||||
if res != initial_res && this.ambiguity_errors.is_empty() {
|
||||
if res != initial_res
|
||||
&& this.ambiguity_errors.is_empty()
|
||||
&& res != Res::Err
|
||||
{
|
||||
span_bug!(import.span, "inconsistent resolution for an import");
|
||||
}
|
||||
} else if res != Res::Err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue