remove unnecessary normalize call

This commit is contained in:
Ali MJ Al-Nasrawy 2022-11-16 20:20:26 +03:00
parent c6a17bf8bc
commit 8afd3c47a8

View File

@ -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.