about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_hir_typeck/src/expr.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir_typeck/src/expr.rs b/compiler/rustc_hir_typeck/src/expr.rs
index ab567edd062..4e5a9ce89a9 100644
--- a/compiler/rustc_hir_typeck/src/expr.rs
+++ b/compiler/rustc_hir_typeck/src/expr.rs
@@ -2156,7 +2156,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
                 }
             }
             if let Some(default_trait) = self.tcx.get_diagnostic_item(sym::Default)
-                && self.infcx
+                && self
+                    .infcx
                     .type_implements_trait(default_trait, [adt_ty], self.param_env)
                     .may_apply()
             {