Skip to content

Commit e8cde83

Browse files
committed
remove unnecessary normalize call
1 parent ff6a0aa commit e8cde83

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+1
-3
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,9 +1258,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12581258
// If we have a default, then we it doesn't matter that we're not
12591259
// inferring the type arguments: we provide the default where any
12601260
// is missing.
1261-
let default =
1262-
tcx.bound_type_of(param.def_id).subst(tcx, substs.unwrap());
1263-
self.fcx.normalize_associated_types_in(self.span, default).into()
1261+
tcx.bound_type_of(param.def_id).subst(tcx, substs.unwrap()).into()
12641262
} else {
12651263
// If no type arguments were provided, we have to infer them.
12661264
// This case also occurs as a result of some malformed input, e.g.

0 commit comments

Comments
 (0)