Check hidden types in dead code
This commit is contained in:
parent
70d39abbc2
commit
f85d3a7e33
5 changed files with 55 additions and 23 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue