Rollup merge of #71891 - lcnr:not-iter-any, r=Dylan-DPC
¬∃x. ¬y => ∀x. y
This commit is contained in:
commit
a93cc0664f
@ -1753,7 +1753,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||||||
potential_assoc_types: Vec<Span>,
|
potential_assoc_types: Vec<Span>,
|
||||||
trait_bounds: &[hir::PolyTraitRef<'_>],
|
trait_bounds: &[hir::PolyTraitRef<'_>],
|
||||||
) {
|
) {
|
||||||
if !associated_types.values().any(|v| !v.is_empty()) {
|
if associated_types.values().all(|v| v.is_empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let tcx = self.tcx();
|
let tcx = self.tcx();
|
||||||
|
Loading…
Reference in New Issue
Block a user