]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_mir/src/monomorphize/partitioning/default.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / compiler / rustc_mir / src / monomorphize / partitioning / default.rs
index 037b80e4bf2bb541e019907c32a668a6a1f80f97..d5a845dd76fb876d1128b7411e8a93e906ac0d2c 100644 (file)
@@ -304,7 +304,7 @@ fn characteristic_def_id_of_mono_item<'tcx>(
                 let impl_self_ty = tcx.subst_and_normalize_erasing_regions(
                     instance.substs,
                     ty::ParamEnv::reveal_all(),
-                    &tcx.type_of(impl_def_id),
+                    tcx.type_of(impl_def_id),
                 );
                 if let Some(def_id) = characteristic_def_id_of_type(impl_self_ty) {
                     return Some(def_id);