@@ -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
@@ -454,14 +454,14 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeInfoCollector<'a, 'tcx> {
454
454
}
455
455
456
456
declare_lint ! {
457
- /// The `hidden_lifetimes_in_type_paths2 ` lint detects the use of
457
+ /// The `hidden_lifetimes_in_type_paths ` lint detects the use of
458
458
/// hidden lifetime parameters in types not part of a function's
459
459
/// arguments or return values.
460
460
///
461
461
/// ### Example
462
462
///
463
463
/// ```rust,compile_fail
464
- /// #![deny(hidden_lifetimes_in_input_paths2 )]
464
+ /// #![deny(hidden_lifetimes_in_input_paths )]
465
465
///
466
466
/// struct ContainsLifetime<'a>(&'a i32);
467
467
///
@@ -480,7 +480,7 @@ declare_lint! {
480
480
/// lifetime].
481
481
///
482
482
/// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
483
- pub HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
483
+ pub HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
484
484
Allow ,
485
485
"hidden lifetime parameters in types outside function signatures are discouraged"
486
486
}
@@ -490,7 +490,7 @@ pub(crate) struct HiddenLifetimesInTypePaths {
490
490
inside_fn_signature : bool ,
491
491
}
492
492
493
- impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ] ) ;
493
+ impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS ] ) ;
494
494
495
495
impl < ' tcx > LateLintPass < ' tcx > for HiddenLifetimesInTypePaths {
496
496
#[ instrument( skip( self , cx) ) ]
@@ -533,7 +533,7 @@ impl<'tcx> LateLintPass<'tcx> for HiddenLifetimesInTypePaths {
533
533
}
534
534
535
535
cx. emit_span_lint (
536
- HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
536
+ HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
537
537
ty. span ,
538
538
lints:: HiddenLifetimeInPath {
539
539
suggestions : lints:: HiddenLifetimeInPathSuggestion { suggestions } ,
0 commit comments