File tree 1 file changed +5
-6
lines changed
src/librustc_mir/monomorphize
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>(
1143
1143
def_id_to_string( tcx, impl_def_id) ) ;
1144
1144
1145
1145
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
+ ) ;
1146
1151
let overridden_methods: FxHashSet < _ > =
1147
1152
impl_item_refs. iter ( )
1148
1153
. map ( |iiref| iiref. ident . modern ( ) )
@@ -1165,12 +1170,6 @@ fn create_mono_items_for_default_impls<'tcx>(
1165
1170
}
1166
1171
}
1167
1172
} ) ;
1168
-
1169
- let param_env = ty:: ParamEnv :: reveal_all ( ) ;
1170
- let substs = tcx. normalize_erasing_regions (
1171
- param_env,
1172
- substs,
1173
- ) ;
1174
1173
let instance = ty:: Instance :: resolve ( tcx,
1175
1174
param_env,
1176
1175
method. def_id ,
You can’t perform that action at this time.
0 commit comments