about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorDinu Blanovschi <git@dnbln.dev>2023-11-04 19:48:44 +0100
committerDinu Blanovschi <git@dnbln.dev>2023-11-04 19:48:44 +0100
commit241a654c07e0741ea1f32ea9f41761bcf6adcefc (patch)
treebadd5d5cd089c1a1d29c9730a85060616377cc9f /compiler/rustc_trait_selection/src
parent8de489918ba83e3b6080f10cd6294434564028fa (diff)
downloadrust-241a654c07e0741ea1f32ea9f41761bcf6adcefc.tar.gz
rust-241a654c07e0741ea1f32ea9f41761bcf6adcefc.zip
Fix remaining uses of `CaptureBy::Value`
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 31da437f2e9..78ceddcd263 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -2938,7 +2938,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
                 else {
                     bug!("expected closure in SizedClosureCapture obligation");
                 };
-                if let hir::CaptureBy::Value = closure.capture_clause
+                if let hir::CaptureBy::Value { .. } = closure.capture_clause
                     && let Some(span) = closure.fn_arg_span
                 {
                     err.span_label(span, "this closure captures all values by move");