about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2022-11-09 15:39:06 -0500
committerGitHub <noreply@github.com>2022-11-09 15:39:06 -0500
commita709cc1f3254d5f23613b436544dc22fb927a081 (patch)
treed60a9996d76f5c434dc1603ab249c38196cea9e0 /compiler/rustc_trait_selection/src/traits
parentbfd637a3cf85b80453db4a6e39802163b07319f7 (diff)
parentb745a29fa51b59642f3883bc80ca1d502532757e (diff)
downloadrust-a709cc1f3254d5f23613b436544dc22fb927a081.tar.gz
rust-a709cc1f3254d5f23613b436544dc22fb927a081.zip
Rollup merge of #104156 - oli-obk:autoderef, r=estebank
Cleanups in autoderef impl

Just something I noticed. Turns out the `overloaded_span` is not actually used separately from the main span, so I merged them.
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs1
1 files changed, 0 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 0f4aa87b43f..aece4ab7922 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -714,7 +714,6 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
                     obligation.cause.body_id,
                     span,
                     base_ty,
-                    span,
                 );
                 if let Some(steps) = autoderef.find_map(|(ty, steps)| {
                     // Re-add the `&`