Add docs to generics_def_id_map

This commit is contained in:
Santiago Pastorino 2022-08-04 10:14:16 -03:00
parent 5e71659983
commit c0923c8934
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF
1 changed files with 4 additions and 1 deletions

View File

@ -913,7 +913,10 @@ pub struct Resolver<'a> {
label_res_map: NodeMap<NodeId>,
/// Resolutions for lifetimes.
lifetimes_res_map: NodeMap<LifetimeRes>,
/// Mapping from generics def-id to RPIT copied generic def-id
/// Mapping from generics `def_id`s to TAIT generics `def_id`s.
/// For each captured lifetime (e.g., 'a), we create a new lifetime parameter that is a generic
/// defined on the TAIT, so we have type Foo<'a1> = ... and we establish a mapping in this
/// field from the original parameter 'a to the new parameter 'a1.
generics_def_id_map: Vec<FxHashMap<LocalDefId, LocalDefId>>,
/// Lifetime parameters that lowering will have to introduce.
extra_lifetime_params_map: NodeMap<Vec<(Ident, NodeId, LifetimeRes)>>,