1
Fork 0

Check hidden types in dead code

This commit is contained in:
Oli Scherer 2022-10-01 11:08:58 +00:00
parent 70d39abbc2
commit f85d3a7e33
5 changed files with 55 additions and 23 deletions

View file

@ -560,13 +560,11 @@ impl<'cx, 'tcx> WritebackCx<'cx, 'tcx> {
continue;
}
let hidden_type = hidden_type
.remap_generic_params_to_declaration_params(
opaque_type_key,
self.fcx.infcx.tcx,
true,
)
.ty;
let hidden_type = hidden_type.remap_generic_params_to_declaration_params(
opaque_type_key,
self.fcx.infcx.tcx,
true,
);
self.typeck_results.concrete_opaque_types.insert(opaque_type_key.def_id, hidden_type);
}