Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8afd3c4

Browse files
committed
remove unnecessary normalize call
1 parent c6a17bf commit 8afd3c4

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
@@ -1199,9 +1199,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
11991199
// If we have a default, then we it doesn't matter that we're not
12001200
// inferring the type arguments: we provide the default where any
12011201
// is missing.
1202-
let default =
1203-
tcx.bound_type_of(param.def_id).subst(tcx, substs.unwrap());
1204-
self.fcx.normalize(self.span, default).into()
1202+
tcx.bound_type_of(param.def_id).subst(tcx, substs.unwrap()).into()
12051203
} else {
12061204
// If no type arguments were provided, we have to infer them.
12071205
// This case also occurs as a result of some malformed input, e.g.

0 commit comments

Comments
 (0)