remove unnecessary normalize call
This commit is contained in:
parent
c6a17bf8bc
commit
8afd3c47a8
@ -1199,9 +1199,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||
// If we have a default, then we it doesn't matter that we're not
|
||||
// inferring the type arguments: we provide the default where any
|
||||
// is missing.
|
||||
let default =
|
||||
tcx.bound_type_of(param.def_id).subst(tcx, substs.unwrap());
|
||||
self.fcx.normalize(self.span, default).into()
|
||||
tcx.bound_type_of(param.def_id).subst(tcx, substs.unwrap()).into()
|
||||
} else {
|
||||
// If no type arguments were provided, we have to infer them.
|
||||
// This case also occurs as a result of some malformed input, e.g.
|
||||
|
Loading…
x
Reference in New Issue
Block a user