Don't fire refinement lint if there are errors
This commit is contained in:
parent
36076ecdc7
commit
322c4bdac5
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ pub(super) fn check_refining_return_position_impl_trait_in_trait<'tcx>(
|
|||
return;
|
||||
};
|
||||
|
||||
if hidden_tys.items().any(|(_, &ty)| ty.skip_binder().references_error()) {
|
||||
return;
|
||||
}
|
||||
|
||||
let mut collector = ImplTraitInTraitCollector { tcx, types: FxIndexSet::default() };
|
||||
trait_m_sig.visit_with(&mut collector);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue