about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-08-18 12:22:07 +0000
committerMichael Goulet <michael@errs.io>2022-08-21 02:35:11 +0000
commit70b29f7c2d6d4b86d5b1492f3aa63969a62b25bf (patch)
tree1da4bac18bd93bb37f781346d1a09ff45ec45644 /compiler/rustc_trait_selection/src
parent52e2065ed4dba1a68a5f85e8de212e76dde72e7a (diff)
downloadrust-70b29f7c2d6d4b86d5b1492f3aa63969a62b25bf.tar.gz
rust-70b29f7c2d6d4b86d5b1492f3aa63969a62b25bf.zip
Note closure kind mismatch cause
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
index ab445afe6d6..70fac83325a 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
@@ -860,8 +860,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
                             }
                         }
 
-                        err.emit();
-                        return;
+                        err
                     }
 
                     ty::PredicateKind::WellFormed(ty) => {