@@ -79,10 +79,10 @@ struct LifetimeContext<'a> {
7979enum ScopeChain < ' a > {
8080 /// EarlyScope(i, ['a, 'b, ...], s) extends s with early-bound
8181 /// lifetimes, assigning indexes 'a => i, 'b => i+1, ... etc.
82- EarlyScope ( subst:: ParamSpace , & ' a Vec < hir:: LifetimeDef > , Scope < ' a > ) ,
82+ EarlyScope ( subst:: ParamSpace , & ' a [ hir:: LifetimeDef ] , Scope < ' a > ) ,
8383 /// LateScope(['a, 'b, ...], s) extends s with late-bound
8484 /// lifetimes introduced by the declaration binder_id.
85- LateScope ( & ' a Vec < hir:: LifetimeDef > , Scope < ' a > ) ,
85+ LateScope ( & ' a [ hir:: LifetimeDef ] , Scope < ' a > ) ,
8686 /// lifetimes introduced by items within a code block are scoped
8787 /// to that block.
8888 BlockScope ( region:: DestructionScopeData , Scope < ' a > ) ,
@@ -661,7 +661,7 @@ impl<'a> LifetimeContext<'a> {
661661 lifetime_ref. name) ;
662662 }
663663
664- fn check_lifetime_defs ( & mut self , old_scope : Scope , lifetimes : & Vec < hir:: LifetimeDef > ) {
664+ fn check_lifetime_defs ( & mut self , old_scope : Scope , lifetimes : & [ hir:: LifetimeDef ] ) {
665665 for i in 0 ..lifetimes. len ( ) {
666666 let lifetime_i = & lifetimes[ i] ;
667667
@@ -753,7 +753,7 @@ impl<'a> LifetimeContext<'a> {
753753 }
754754}
755755
756- fn search_lifetimes < ' a > ( lifetimes : & ' a Vec < hir:: LifetimeDef > ,
756+ fn search_lifetimes < ' a > ( lifetimes : & ' a [ hir:: LifetimeDef ] ,
757757 lifetime_ref : & hir:: Lifetime )
758758 -> Option < ( u32 , & ' a hir:: Lifetime ) > {
759759 for ( i, lifetime_decl) in lifetimes. iter ( ) . enumerate ( ) {
0 commit comments