about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2022-12-29 22:46:17 -0800
committerEsteban Küber <esteban@kuber.com.ar>2023-01-01 10:09:26 -0800
commit5bfcfeee2ac9da6a69bf62a58db3e5f80ee0a823 (patch)
tree62afefb89c89103316349f851ea27d2adaff3cff /compiler/rustc_trait_selection/src
parentbb6e76df06dcbdb96e634eb28a49f161d70ab844 (diff)
downloadrust-5bfcfeee2ac9da6a69bf62a58db3e5f80ee0a823.tar.gz
rust-5bfcfeee2ac9da6a69bf62a58db3e5f80ee0a823.zip
Merge multiple mutable borrows of immutable binding errors
Fix #53466.
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 06ab0e8d944..7c21a1047bc 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -3237,7 +3237,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
         })) = call_node
         {
             if Some(rcvr.span) == err.span.primary_span() {
-                err.replace_span_with(path.ident.span);
+                err.replace_span_with(path.ident.span, true);
             }
         }
         if let Some(Node::Expr(hir::Expr {