@@ -70,14 +70,14 @@ declare_lint! {
70
70
}
71
71
72
72
declare_lint ! {
73
- /// The `hidden_lifetimes_in_input_paths2 ` lint detects the use of
73
+ /// The `hidden_lifetimes_in_input_paths ` lint detects the use of
74
74
/// hidden lifetime parameters in types occurring as a function
75
75
/// argument.
76
76
///
77
77
/// ### Example
78
78
///
79
79
/// ```rust,compile_fail
80
- /// #![deny(hidden_lifetimes_in_input_paths2 )]
80
+ /// #![deny(hidden_lifetimes_in_input_paths )]
81
81
///
82
82
/// struct ContainsLifetime<'a>(&'a i32);
83
83
///
@@ -99,20 +99,20 @@ declare_lint! {
99
99
/// themselves do not usually cause much confusion.
100
100
///
101
101
/// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
102
- pub HIDDEN_LIFETIMES_IN_INPUT_PATHS2 ,
102
+ pub HIDDEN_LIFETIMES_IN_INPUT_PATHS ,
103
103
Allow ,
104
104
"hidden lifetime parameters in types in function arguments may be confusing"
105
105
}
106
106
107
107
declare_lint ! {
108
- /// The `hidden_lifetimes_in_output_paths2 ` lint detects the use
108
+ /// The `hidden_lifetimes_in_output_paths ` lint detects the use
109
109
/// of hidden lifetime parameters in types occurring as a function
110
110
/// return value.
111
111
///
112
112
/// ### Example
113
113
///
114
114
/// ```rust,compile_fail
115
- /// #![deny(hidden_lifetimes_in_input_paths2 )]
115
+ /// #![deny(hidden_lifetimes_in_input_paths )]
116
116
///
117
117
/// struct ContainsLifetime<'a>(&'a i32);
118
118
///
@@ -137,15 +137,15 @@ declare_lint! {
137
137
/// lifetime].
138
138
///
139
139
/// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
140
- pub HIDDEN_LIFETIMES_IN_OUTPUT_PATHS2 ,
140
+ pub HIDDEN_LIFETIMES_IN_OUTPUT_PATHS ,
141
141
Allow ,
142
142
"hidden lifetime parameters in types in function return values are deprecated"
143
143
}
144
144
145
145
declare_lint_pass ! ( LifetimeStyle => [
146
146
MISMATCHED_LIFETIME_SYNTAXES ,
147
- HIDDEN_LIFETIMES_IN_INPUT_PATHS2 ,
148
- HIDDEN_LIFETIMES_IN_OUTPUT_PATHS2 ,
147
+ HIDDEN_LIFETIMES_IN_INPUT_PATHS ,
148
+ HIDDEN_LIFETIMES_IN_OUTPUT_PATHS ,
149
149
] ) ;
150
150
151
151
impl < ' tcx > LateLintPass < ' tcx > for LifetimeStyle {
@@ -171,8 +171,8 @@ impl<'tcx> LateLintPass<'tcx> for LifetimeStyle {
171
171
}
172
172
173
173
report_mismatches ( cx, & input_map, & output_map) ;
174
- report_hidden_in_paths ( cx, & input_map, HIDDEN_LIFETIMES_IN_INPUT_PATHS2 ) ;
175
- report_hidden_in_paths ( cx, & output_map, HIDDEN_LIFETIMES_IN_OUTPUT_PATHS2 ) ;
174
+ report_hidden_in_paths ( cx, & input_map, HIDDEN_LIFETIMES_IN_INPUT_PATHS ) ;
175
+ report_hidden_in_paths ( cx, & output_map, HIDDEN_LIFETIMES_IN_OUTPUT_PATHS ) ;
176
176
}
177
177
}
178
178
@@ -451,14 +451,14 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeInfoCollector<'a, 'tcx> {
451
451
}
452
452
453
453
declare_lint ! {
454
- /// The `hidden_lifetimes_in_type_paths2 ` lint detects the use of
454
+ /// The `hidden_lifetimes_in_type_paths ` lint detects the use of
455
455
/// hidden lifetime parameters in types not part of a function's
456
456
/// arguments or return values.
457
457
///
458
458
/// ### Example
459
459
///
460
460
/// ```rust,compile_fail
461
- /// #![deny(hidden_lifetimes_in_input_paths2 )]
461
+ /// #![deny(hidden_lifetimes_in_input_paths )]
462
462
///
463
463
/// struct ContainsLifetime<'a>(&'a i32);
464
464
///
@@ -477,7 +477,7 @@ declare_lint! {
477
477
/// lifetime].
478
478
///
479
479
/// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
480
- pub HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
480
+ pub HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
481
481
Allow ,
482
482
"hidden lifetime parameters in types outside function signatures are discouraged"
483
483
}
@@ -487,7 +487,7 @@ pub(crate) struct HiddenLifetimesInTypePaths {
487
487
inside_fn_signature : bool ,
488
488
}
489
489
490
- impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ] ) ;
490
+ impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS ] ) ;
491
491
492
492
impl < ' tcx > LateLintPass < ' tcx > for HiddenLifetimesInTypePaths {
493
493
#[ instrument( skip( self , cx) ) ]
@@ -529,7 +529,7 @@ impl<'tcx> LateLintPass<'tcx> for HiddenLifetimesInTypePaths {
529
529
}
530
530
531
531
cx. emit_span_lint (
532
- HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
532
+ HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
533
533
ty. span ,
534
534
lints:: HiddenLifetimeInPath {
535
535
suggestions : lints:: HiddenLifetimeInPathSuggestion { suggestions } ,
0 commit comments