Skip to content

Commit b0d7ccb

Browse files
committed
fmt
1 parent a519c9b commit b0d7ccb

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+2
-1
lines changed

compiler/rustc_hir_typeck/src/expr.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
21562156
}
21572157
}
21582158
if let Some(default_trait) = self.tcx.get_diagnostic_item(sym::Default)
2159-
&& self.infcx
2159+
&& self
2160+
.infcx
21602161
.type_implements_trait(default_trait, [adt_ty], self.param_env)
21612162
.may_apply()
21622163
{

0 commit comments

Comments
 (0)