diff options
| author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2022-11-16 20:20:26 +0300 |
|---|---|---|
| committer | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2023-01-07 13:42:15 +0300 |
| commit | 8afd3c47a800f0ebd40d1dc91d498ca02b3ab484 (patch) | |
| tree | ca4738d81a53c9c18a047074048c9602622be92e | |
| parent | c6a17bf8bcfa60c8b0436251d2cf70d8eca4d198 (diff) | |
| download | rust-8afd3c47a800f0ebd40d1dc91d498ca02b3ab484.tar.gz rust-8afd3c47a800f0ebd40d1dc91d498ca02b3ab484.zip | |
remove unnecessary normalize call
| -rw-r--r-- | compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs b/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs index e9e43950fb2..f5cffef54e0 100644 --- a/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs +++ b/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs @@ -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. |
