File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
compiler/rustc_resolve/src Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -913,7 +913,10 @@ pub struct Resolver<'a> {
913
913
label_res_map : NodeMap < NodeId > ,
914
914
/// Resolutions for lifetimes.
915
915
lifetimes_res_map : NodeMap < LifetimeRes > ,
916
- /// Mapping from generics def-id to RPIT copied generic def-id
916
+ /// Mapping from generics `def_id`s to TAIT generics `def_id`s.
917
+ /// For each captured lifetime (e.g., 'a), we create a new lifetime parameter that is a generic
918
+ /// defined on the TAIT, so we have type Foo<'a1> = ... and we establish a mapping in this
919
+ /// field from the original parameter 'a to the new parameter 'a1.
917
920
generics_def_id_map : Vec < FxHashMap < LocalDefId , LocalDefId > > ,
918
921
/// Lifetime parameters that lowering will have to introduce.
919
922
extra_lifetime_params_map : NodeMap < Vec < ( Ident , NodeId , LifetimeRes ) > > ,
You can’t perform that action at this time.
0 commit comments