]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
Dedup logic and improve output for other types that impl trait
[rust.git] / compiler / rustc_trait_selection / src / traits / error_reporting / suggestions.rs
index b369c733871987970bed819e3416d524f5444187..16ecca254c7b0163de33a9a401c30b2f86ee7652 100644 (file)
@@ -557,8 +557,11 @@ fn suggest_dereferences(
                     }
                 } else if real_trait_pred != trait_pred {
                     // This branch addresses #87437.
-                    let obligation =
-                        self.mk_trait_obligation_with_new_self_ty(param_env, real_trait_pred, base_ty);
+                    let obligation = self.mk_trait_obligation_with_new_self_ty(
+                        param_env,
+                        real_trait_pred,
+                        base_ty,
+                    );
                     if self.predicate_may_hold(&obligation) {
                         err.span_suggestion_verbose(
                             span.shrink_to_lo(),