Skip to content

Commit a93cc06

Browse files
authored
Rollup merge of #71891 - lcnr:not-iter-any, r=Dylan-DPC
¬∃x. ¬y => ∀x. y
2 parents 4b0b6e3 + a9b6af9 commit a93cc06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/astconv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
17531753
potential_assoc_types: Vec<Span>,
17541754
trait_bounds: &[hir::PolyTraitRef<'_>],
17551755
) {
1756-
if !associated_types.values().any(|v| !v.is_empty()) {
1756+
if associated_types.values().all(|v| v.is_empty()) {
17571757
return;
17581758
}
17591759
let tcx = self.tcx();

0 commit comments

Comments
 (0)