@@ -207,7 +207,7 @@ impl<R: Reader> ParsedEhFrameHdr<R> {
207207 }
208208
209209 /// Retrieves the CFI binary search table, if there is one.
210- pub fn table ( & self ) -> Option < EhHdrTable < R > > {
210+ pub fn table ( & self ) -> Option < EhHdrTable < ' _ , R > > {
211211 // There are two big edge cases here:
212212 // * You search the table for an invalid address. As this is just a binary
213213 // search table, we always have to return a valid result for that (unless
@@ -1245,7 +1245,7 @@ struct AugmentationData {
12451245impl AugmentationData {
12461246 fn parse < R : Reader > (
12471247 augmentation : & Augmentation ,
1248- encoding_parameters : & PointerEncodingParameters < R > ,
1248+ encoding_parameters : & PointerEncodingParameters < ' _ , R > ,
12491249 input : & mut R ,
12501250 ) -> Result < AugmentationData > {
12511251 // In theory, we should be iterating over the original augmentation
@@ -1712,7 +1712,7 @@ impl<R: Reader> FrameDescriptionEntry<R> {
17121712 fn parse_addresses (
17131713 input : & mut R ,
17141714 cie : & CommonInformationEntry < R > ,
1715- parameters : & PointerEncodingParameters < R > ,
1715+ parameters : & PointerEncodingParameters < ' _ , R > ,
17161716 ) -> Result < ( u64 , u64 ) > {
17171717 let encoding = cie. augmentation ( ) . and_then ( |a| a. fde_address_encoding ) ;
17181718 if let Some ( encoding) = encoding {
@@ -1990,7 +1990,7 @@ pub struct UnwindContext<T: ReaderOffset, A: UnwindContextStorage<T> = StoreOnHe
19901990}
19911991
19921992impl < T : ReaderOffset , S : UnwindContextStorage < T > > Debug for UnwindContext < T , S > {
1993- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1993+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
19941994 f. debug_struct ( "UnwindContext" )
19951995 . field ( "stack" , & self . stack )
19961996 . field ( "initial_rule" , & self . initial_rule )
@@ -2524,7 +2524,7 @@ struct RegisterRuleMap<T: ReaderOffset, S: UnwindContextStorage<T> = StoreOnHeap
25242524}
25252525
25262526impl < T : ReaderOffset , S : UnwindContextStorage < T > > Debug for RegisterRuleMap < T , S > {
2527- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2527+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
25282528 f. debug_struct ( "RegisterRuleMap" )
25292529 . field ( "rules" , & self . rules )
25302530 . finish ( )
@@ -2594,7 +2594,7 @@ impl<T: ReaderOffset, S: UnwindContextStorage<T>> RegisterRuleMap<T, S> {
25942594 . map_err ( |_| Error :: TooManyRegisterRules )
25952595 }
25962596
2597- fn iter ( & self ) -> RegisterRuleIter < T > {
2597+ fn iter ( & self ) -> RegisterRuleIter < ' _ , T > {
25982598 RegisterRuleIter ( self . rules . iter ( ) )
25992599 }
26002600}
@@ -2671,7 +2671,7 @@ pub struct UnwindTableRow<T: ReaderOffset, S: UnwindContextStorage<T> = StoreOnH
26712671}
26722672
26732673impl < T : ReaderOffset , S : UnwindContextStorage < T > > Debug for UnwindTableRow < T , S > {
2674- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2674+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
26752675 f. debug_struct ( "UnwindTableRow" )
26762676 . field ( "start_address" , & self . start_address )
26772677 . field ( "end_address" , & self . end_address )
@@ -2812,7 +2812,7 @@ impl<T: ReaderOffset, S: UnwindContextStorage<T>> UnwindTableRow<T, S> {
28122812 /// }
28132813 /// # }
28142814 /// ```
2815- pub fn registers ( & self ) -> RegisterRuleIter < T > {
2815+ pub fn registers ( & self ) -> RegisterRuleIter < ' _ , T > {
28162816 self . registers . iter ( )
28172817 }
28182818}
@@ -3209,7 +3209,7 @@ impl<T: ReaderOffset> CallFrameInstruction<T> {
32093209 fn parse < R : Reader < Offset = T > > (
32103210 input : & mut R ,
32113211 address_encoding : Option < DwEhPe > ,
3212- parameters : & PointerEncodingParameters < R > ,
3212+ parameters : & PointerEncodingParameters < ' _ , R > ,
32133213 vendor : Vendor ,
32143214 ) -> Result < CallFrameInstruction < T > > {
32153215 let instruction = input. read_u8 ( ) ?;
@@ -3557,7 +3557,7 @@ struct PointerEncodingParameters<'a, R: Reader> {
35573557
35583558fn parse_encoded_pointer < R : Reader > (
35593559 encoding : constants:: DwEhPe ,
3560- parameters : & PointerEncodingParameters < R > ,
3560+ parameters : & PointerEncodingParameters < ' _ , R > ,
35613561 input : & mut R ,
35623562) -> Result < Pointer > {
35633563 // TODO: check this once only in parse_pointer_encoding
0 commit comments