Skip to content

Commit

Permalink
Rollup merge of #71891 - lcnr:not-iter-any, r=Dylan-DPC
Browse files Browse the repository at this point in the history
¬∃x. ¬y => ∀x. y
  • Loading branch information
Dylan-DPC authored May 4, 2020
2 parents 4b0b6e3 + a9b6af9 commit a93cc06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/astconv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
potential_assoc_types: Vec<Span>,
trait_bounds: &[hir::PolyTraitRef<'_>],
) {
if !associated_types.values().any(|v| !v.is_empty()) {
if associated_types.values().all(|v| v.is_empty()) {
return;
}
let tcx = self.tcx();
Expand Down

0 comments on commit a93cc06

Please sign in to comment.