double neg

This commit is contained in:
Bastian Kauschke 2020-05-04 21:04:11 +02:00
parent 649b6323cd
commit a9b6af98d1

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