diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2022-12-29 22:46:17 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-01-01 10:09:26 -0800 |
| commit | 5bfcfeee2ac9da6a69bf62a58db3e5f80ee0a823 (patch) | |
| tree | 62afefb89c89103316349f851ea27d2adaff3cff /compiler/rustc_trait_selection/src | |
| parent | bb6e76df06dcbdb96e634eb28a49f161d70ab844 (diff) | |
| download | rust-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.rs | 2 |
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 { |
