about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-05-05 01:49:48 +0200
committerGitHub <noreply@github.com>2020-05-05 01:49:48 +0200
commita93cc0664fee37010385b88918632332d2a4281f (patch)
tree89f679f2b3a977453c1705a3e21531b2a2755ebf /src
parent4b0b6e357bc1bffef0bfafe96cd673a11cd564c4 (diff)
parenta9b6af98d182e1a40d97c48bbab27916224847ff (diff)
Rollup merge of #71891 - lcnr:not-iter-any, r=Dylan-DPC
¬∃x. ¬y => ∀x. y
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/astconv.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs
index 39fcd075645..cd6cd94b143 100644
--- a/src/librustc_typeck/astconv.rs
+++ b/src/librustc_typeck/astconv.rs
@@ -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();