File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/librustc_mir/monomorphize Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1143,6 +1143,11 @@ fn create_mono_items_for_default_impls<'tcx>(
11431143 def_id_to_string( tcx, impl_def_id) ) ;
11441144
11451145 if let Some ( trait_ref) = tcx. impl_trait_ref ( impl_def_id) {
1146+ let param_env = ty:: ParamEnv :: reveal_all ( ) ;
1147+ let trait_ref = tcx. normalize_erasing_regions (
1148+ param_env,
1149+ trait_ref,
1150+ ) ;
11461151 let overridden_methods: FxHashSet < _ > =
11471152 impl_item_refs. iter ( )
11481153 . map ( |iiref| iiref. ident . modern ( ) )
@@ -1165,12 +1170,6 @@ fn create_mono_items_for_default_impls<'tcx>(
11651170 }
11661171 }
11671172 } ) ;
1168-
1169- let param_env = ty:: ParamEnv :: reveal_all ( ) ;
1170- let substs = tcx. normalize_erasing_regions (
1171- param_env,
1172- substs,
1173- ) ;
11741173 let instance = ty:: Instance :: resolve ( tcx,
11751174 param_env,
11761175 method. def_id ,
You can’t perform that action at this time.
0 commit comments