Rollup merge of #71891 - lcnr:not-iter-any, r=Dylan-DPC

¬∃x. ¬y => ∀x. y
This commit is contained in:
Dylan DPC 2020-05-05 01:49:48 +02:00 committed by GitHub
commit a93cc0664f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();