1
Fork 0

Implement def_id based remapping

This commit is contained in:
Santiago Pastorino 2022-08-02 20:01:40 -03:00
parent f0db1d68e6
commit 1d6cebfd6b
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 135 additions and 102 deletions

View file

@ -177,6 +177,8 @@ pub struct ResolverAstLowering {
pub label_res_map: NodeMap<ast::NodeId>,
/// Resolutions for lifetimes.
pub lifetimes_res_map: NodeMap<LifetimeRes>,
/// Mapping from generics def-id to RPIT copied generic def-id
pub generics_def_id_map: Vec<FxHashMap<LocalDefId, LocalDefId>>,
/// Lifetime parameters that lowering will have to introduce.
pub extra_lifetime_params_map: NodeMap<Vec<(Ident, ast::NodeId, LifetimeRes)>>,