@@ -614,34 +614,34 @@ pub macro declare_arena([$($a:tt $name:ident: $ty:ty,)*]) {
614614
615615 pub trait ArenaAllocatable < ' tcx , C = rustc_arena:: IsNotCopy > : Sized {
616616 #[ allow( clippy:: mut_from_ref) ]
617- fn allocate_on < ' a > ( self , arena : & ' a Arena < ' tcx > ) -> & ' a mut Self ;
617+ fn allocate_on ( self , arena : & ' tcx Arena < ' tcx > ) -> & ' tcx mut Self ;
618618 #[ allow( clippy:: mut_from_ref) ]
619- fn allocate_from_iter < ' a > (
620- arena : & ' a Arena < ' tcx > ,
619+ fn allocate_from_iter (
620+ arena : & ' tcx Arena < ' tcx > ,
621621 iter : impl :: std:: iter:: IntoIterator < Item = Self > ,
622- ) -> & ' a mut [ Self ] ;
622+ ) -> & ' tcx mut [ Self ] ;
623623 }
624624
625625 // Any type that impls `Copy` can be arena-allocated in the `DroplessArena`.
626626 impl < ' tcx , T : Copy > ArenaAllocatable < ' tcx , rustc_arena:: IsCopy > for T {
627627 #[ inline]
628628 #[ allow( clippy:: mut_from_ref) ]
629- fn allocate_on < ' a > ( self , arena : & ' a Arena < ' tcx > ) -> & ' a mut Self {
629+ fn allocate_on ( self , arena : & ' tcx Arena < ' tcx > ) -> & ' tcx mut Self {
630630 arena. dropless . alloc ( self )
631631 }
632632 #[ inline]
633633 #[ allow( clippy:: mut_from_ref) ]
634- fn allocate_from_iter < ' a > (
635- arena : & ' a Arena < ' tcx > ,
634+ fn allocate_from_iter (
635+ arena : & ' tcx Arena < ' tcx > ,
636636 iter : impl :: std:: iter:: IntoIterator < Item = Self > ,
637- ) -> & ' a mut [ Self ] {
637+ ) -> & ' tcx mut [ Self ] {
638638 arena. dropless . alloc_from_iter ( iter)
639639 }
640640 }
641641 $(
642642 impl<' tcx> ArenaAllocatable <' tcx, rustc_arena:: IsNotCopy > for $ty {
643643 #[ inline]
644- fn allocate_on < ' a > ( self , arena : & ' a Arena < ' tcx > ) -> & ' a mut Self {
644+ fn allocate_on ( self , arena : & ' tcx Arena < ' tcx > ) -> & ' tcx mut Self {
645645 if !:: std:: mem:: needs_drop :: < Self > ( ) {
646646 arena. dropless . alloc ( self )
647647 } else {
@@ -651,10 +651,10 @@ pub macro declare_arena([$($a:tt $name:ident: $ty:ty,)*]) {
651651
652652 #[ inline]
653653 #[ allow( clippy:: mut_from_ref) ]
654- fn allocate_from_iter < ' a > (
655- arena : & ' a Arena < ' tcx > ,
654+ fn allocate_from_iter (
655+ arena : & ' tcx Arena < ' tcx > ,
656656 iter : impl :: std:: iter:: IntoIterator < Item = Self > ,
657- ) -> & ' a mut [ Self ] {
657+ ) -> & ' tcx mut [ Self ] {
658658 if !:: std:: mem:: needs_drop :: < Self > ( ) {
659659 arena. dropless . alloc_from_iter ( iter)
660660 } else {
@@ -667,7 +667,7 @@ pub macro declare_arena([$($a:tt $name:ident: $ty:ty,)*]) {
667667 impl<' tcx> Arena <' tcx> {
668668 #[ inline]
669669 #[ allow( clippy:: mut_from_ref) ]
670- pub fn alloc < T : ArenaAllocatable < ' tcx , C > , C > ( & self , value : T ) -> & mut T {
670+ pub fn alloc < T : ArenaAllocatable < ' tcx , C > , C > ( & ' tcx self , value : T ) -> & mut T {
671671 value. allocate_on ( self )
672672 }
673673
@@ -691,7 +691,7 @@ pub macro declare_arena([$($a:tt $name:ident: $ty:ty,)*]) {
691691
692692 #[ allow( clippy:: mut_from_ref) ]
693693 pub fn alloc_from_iter < T : ArenaAllocatable < ' tcx , C > , C > (
694- & self ,
694+ & ' tcx self ,
695695 iter : impl :: std:: iter:: IntoIterator < Item = T > ,
696696 ) -> & mut [ T ] {
697697 T :: allocate_from_iter ( self , iter)
0 commit comments