about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2022-08-30 17:34:35 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2022-09-02 12:55:05 -0500
commit02ba216e3cb6edd4a51e0738953a4276aa84fa20 (patch)
treec95feda408690266979d174e2511515d15805785 /compiler/rustc_trait_selection/src
parent9353538c7bea6edb245457712cec720305c4576e (diff)
downloadrust-02ba216e3cb6edd4a51e0738953a4276aa84fa20.tar.gz
rust-02ba216e3cb6edd4a51e0738953a4276aa84fa20.zip
Refactor and re-use BindingAnnotation
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
index 02adae5bde1..b012073f771 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -774,7 +774,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
             // Get the local name of this closure. This can be inaccurate because
             // of the possibility of reassignment, but this should be good enough.
             match &kind {
-                hir::PatKind::Binding(hir::BindingAnnotation::Unannotated, _, ident, None) => {
+                hir::PatKind::Binding(hir::BindingAnnotation::NONE, _, ident, None) => {
                     Some(ident.name)
                 }
                 _ => {