]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/impl_wf_check/min_specialization.rs
Rollup merge of #98256 - GuillaumeGomez:whitespace-where-clause, r=notriddle
[rust.git] / compiler / rustc_typeck / src / impl_wf_check / min_specialization.rs
index 4d22e168bb64ca35bc9ac09fbe97938308f4acf2..66b121d75c523ecfd542fb1ab605a129758704bb 100644 (file)
@@ -150,7 +150,7 @@ fn get_impl_substs<'tcx>(
 
     // Conservatively use an empty `ParamEnv`.
     let outlives_env = OutlivesEnvironment::new(ty::ParamEnv::empty());
-    infcx.resolve_regions_and_report_errors(impl1_def_id.to_def_id(), &outlives_env);
+    infcx.resolve_regions_and_report_errors(&outlives_env);
     let Ok(impl2_substs) = infcx.fully_resolve(impl2_substs) else {
         let span = tcx.def_span(impl1_def_id);
         tcx.sess.emit_err(SubstsOnOverriddenImpl { span });