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> {
913913 label_res_map : NodeMap < NodeId > ,
914914 /// Resolutions for lifetimes.
915915 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.
917920 generics_def_id_map : Vec < FxHashMap < LocalDefId , LocalDefId > > ,
918921 /// Lifetime parameters that lowering will have to introduce.
919922 extra_lifetime_params_map : NodeMap < Vec < ( Ident , NodeId , LifetimeRes ) > > ,
You can’t perform that action at this time.
0 commit comments