@@ -434,10 +434,10 @@ trait CodeGenerator {
434
434
/// Extra information returned to the caller.
435
435
type Return ;
436
436
437
- fn codegen < ' a > (
437
+ fn codegen (
438
438
& self ,
439
439
ctx : & BindgenContext ,
440
- result : & mut CodegenResult < ' a > ,
440
+ result : & mut CodegenResult < ' _ > ,
441
441
extra : & Self :: Extra ,
442
442
) -> Self :: Return ;
443
443
}
@@ -477,10 +477,10 @@ impl CodeGenerator for Item {
477
477
type Extra = ( ) ;
478
478
type Return = ( ) ;
479
479
480
- fn codegen < ' a > (
480
+ fn codegen (
481
481
& self ,
482
482
ctx : & BindgenContext ,
483
- result : & mut CodegenResult < ' a > ,
483
+ result : & mut CodegenResult < ' _ > ,
484
484
_extra : & ( ) ,
485
485
) {
486
486
debug ! ( "<Item as CodeGenerator>::codegen: self = {:?}" , self ) ;
@@ -509,10 +509,10 @@ impl CodeGenerator for Module {
509
509
type Extra = Item ;
510
510
type Return = ( ) ;
511
511
512
- fn codegen < ' a > (
512
+ fn codegen (
513
513
& self ,
514
514
ctx : & BindgenContext ,
515
- result : & mut CodegenResult < ' a > ,
515
+ result : & mut CodegenResult < ' _ > ,
516
516
item : & Item ,
517
517
) {
518
518
debug ! ( "<Module as CodeGenerator>::codegen: item = {:?}" , item) ;
@@ -601,10 +601,10 @@ impl CodeGenerator for Var {
601
601
type Extra = Item ;
602
602
type Return = ( ) ;
603
603
604
- fn codegen < ' a > (
604
+ fn codegen (
605
605
& self ,
606
606
ctx : & BindgenContext ,
607
- result : & mut CodegenResult < ' a > ,
607
+ result : & mut CodegenResult < ' _ > ,
608
608
item : & Item ,
609
609
) {
610
610
use crate :: ir:: var:: VarType ;
@@ -748,10 +748,10 @@ impl CodeGenerator for Type {
748
748
type Extra = Item ;
749
749
type Return = ( ) ;
750
750
751
- fn codegen < ' a > (
751
+ fn codegen (
752
752
& self ,
753
753
ctx : & BindgenContext ,
754
- result : & mut CodegenResult < ' a > ,
754
+ result : & mut CodegenResult < ' _ > ,
755
755
item : & Item ,
756
756
) {
757
757
debug ! ( "<Type as CodeGenerator>::codegen: item = {:?}" , item) ;
@@ -1069,10 +1069,10 @@ impl<'a> CodeGenerator for Vtable<'a> {
1069
1069
type Extra = Item ;
1070
1070
type Return = ( ) ;
1071
1071
1072
- fn codegen < ' b > (
1072
+ fn codegen (
1073
1073
& self ,
1074
1074
ctx : & BindgenContext ,
1075
- result : & mut CodegenResult < ' b > ,
1075
+ result : & mut CodegenResult < ' _ > ,
1076
1076
item : & Item ,
1077
1077
) {
1078
1078
assert_eq ! ( item. id( ) , self . item_id) ;
@@ -1168,10 +1168,10 @@ impl CodeGenerator for TemplateInstantiation {
1168
1168
type Extra = Item ;
1169
1169
type Return = ( ) ;
1170
1170
1171
- fn codegen < ' a > (
1171
+ fn codegen (
1172
1172
& self ,
1173
1173
ctx : & BindgenContext ,
1174
- result : & mut CodegenResult < ' a > ,
1174
+ result : & mut CodegenResult < ' _ > ,
1175
1175
item : & Item ,
1176
1176
) {
1177
1177
debug_assert ! ( item. is_enabled_for_codegen( ctx) ) ;
@@ -1796,10 +1796,10 @@ impl CodeGenerator for CompInfo {
1796
1796
type Extra = Item ;
1797
1797
type Return = ( ) ;
1798
1798
1799
- fn codegen < ' a > (
1799
+ fn codegen (
1800
1800
& self ,
1801
1801
ctx : & BindgenContext ,
1802
- result : & mut CodegenResult < ' a > ,
1802
+ result : & mut CodegenResult < ' _ > ,
1803
1803
item : & Item ,
1804
1804
) {
1805
1805
debug ! ( "<CompInfo as CodeGenerator>::codegen: item = {:?}" , item) ;
@@ -2407,23 +2407,23 @@ impl CodeGenerator for CompInfo {
2407
2407
}
2408
2408
2409
2409
trait MethodCodegen {
2410
- fn codegen_method < ' a > (
2410
+ fn codegen_method (
2411
2411
& self ,
2412
2412
ctx : & BindgenContext ,
2413
2413
methods : & mut Vec < proc_macro2:: TokenStream > ,
2414
2414
method_names : & mut HashSet < String > ,
2415
- result : & mut CodegenResult < ' a > ,
2415
+ result : & mut CodegenResult < ' _ > ,
2416
2416
parent : & CompInfo ,
2417
2417
) ;
2418
2418
}
2419
2419
2420
2420
impl MethodCodegen for Method {
2421
- fn codegen_method < ' a > (
2421
+ fn codegen_method (
2422
2422
& self ,
2423
2423
ctx : & BindgenContext ,
2424
2424
methods : & mut Vec < proc_macro2:: TokenStream > ,
2425
2425
method_names : & mut HashSet < String > ,
2426
- result : & mut CodegenResult < ' a > ,
2426
+ result : & mut CodegenResult < ' _ > ,
2427
2427
_parent : & CompInfo ,
2428
2428
) {
2429
2429
assert ! ( {
@@ -2779,13 +2779,13 @@ impl<'a> EnumBuilder<'a> {
2779
2779
}
2780
2780
2781
2781
/// Add a variant to this enum.
2782
- fn with_variant < ' b > (
2782
+ fn with_variant (
2783
2783
self ,
2784
2784
ctx : & BindgenContext ,
2785
2785
variant : & EnumVariant ,
2786
2786
mangling_prefix : Option < & str > ,
2787
2787
rust_ty : proc_macro2:: TokenStream ,
2788
- result : & mut CodegenResult < ' b > ,
2788
+ result : & mut CodegenResult < ' _ > ,
2789
2789
is_ty_named : bool ,
2790
2790
) -> Self {
2791
2791
let variant_name = ctx. rust_mangle ( variant. name ( ) ) ;
@@ -2896,11 +2896,11 @@ impl<'a> EnumBuilder<'a> {
2896
2896
}
2897
2897
}
2898
2898
2899
- fn build < ' b > (
2899
+ fn build (
2900
2900
self ,
2901
2901
ctx : & BindgenContext ,
2902
2902
rust_ty : proc_macro2:: TokenStream ,
2903
- result : & mut CodegenResult < ' b > ,
2903
+ result : & mut CodegenResult < ' _ > ,
2904
2904
) -> proc_macro2:: TokenStream {
2905
2905
match self {
2906
2906
EnumBuilder :: Rust {
@@ -2999,10 +2999,10 @@ impl CodeGenerator for Enum {
2999
2999
type Extra = Item ;
3000
3000
type Return = ( ) ;
3001
3001
3002
- fn codegen < ' a > (
3002
+ fn codegen (
3003
3003
& self ,
3004
3004
ctx : & BindgenContext ,
3005
- result : & mut CodegenResult < ' a > ,
3005
+ result : & mut CodegenResult < ' _ > ,
3006
3006
item : & Item ,
3007
3007
) {
3008
3008
debug ! ( "<Enum as CodeGenerator>::codegen: item = {:?}" , item) ;
@@ -3137,7 +3137,7 @@ impl CodeGenerator for Enum {
3137
3137
attrs. push ( attributes:: derives ( & derives) ) ;
3138
3138
}
3139
3139
3140
- fn add_constant < ' a > (
3140
+ fn add_constant (
3141
3141
ctx : & BindgenContext ,
3142
3142
enum_ : & Type ,
3143
3143
// Only to avoid recomputing every time.
@@ -3148,7 +3148,7 @@ impl CodeGenerator for Enum {
3148
3148
variant_name : & Ident ,
3149
3149
referenced_name : & Ident ,
3150
3150
enum_rust_ty : proc_macro2:: TokenStream ,
3151
- result : & mut CodegenResult < ' a > ,
3151
+ result : & mut CodegenResult < ' _ > ,
3152
3152
) {
3153
3153
let constant_name = if enum_. name ( ) . is_some ( ) {
3154
3154
if ctx. options ( ) . prepend_enum_name {
@@ -3995,10 +3995,10 @@ impl CodeGenerator for Function {
3995
3995
/// it.
3996
3996
type Return = Option < u32 > ;
3997
3997
3998
- fn codegen < ' a > (
3998
+ fn codegen (
3999
3999
& self ,
4000
4000
ctx : & BindgenContext ,
4001
- result : & mut CodegenResult < ' a > ,
4001
+ result : & mut CodegenResult < ' _ > ,
4002
4002
item : & Item ,
4003
4003
) -> Self :: Return {
4004
4004
debug ! ( "<Function as CodeGenerator>::codegen: item = {:?}" , item) ;
@@ -4237,10 +4237,10 @@ impl CodeGenerator for ObjCInterface {
4237
4237
type Extra = Item ;
4238
4238
type Return = ( ) ;
4239
4239
4240
- fn codegen < ' a > (
4240
+ fn codegen (
4241
4241
& self ,
4242
4242
ctx : & BindgenContext ,
4243
- result : & mut CodegenResult < ' a > ,
4243
+ result : & mut CodegenResult < ' _ > ,
4244
4244
item : & Item ,
4245
4245
) {
4246
4246
debug_assert ! ( item. is_enabled_for_codegen( ctx) ) ;
0 commit comments