@@ -70,17 +70,16 @@ declare_lint! {
7070}
7171
7272declare_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
7474 /// hidden lifetime parameters in types occurring as a function
7575 /// argument.
7676 ///
7777 /// ### Example
7878 ///
7979 /// ```rust,compile_fail
80- /// #![deny(hidden_lifetimes_in_input_paths2)]
81- ///
8280 /// struct ContainsLifetime<'a>(&'a i32);
8381 ///
82+ /// #[deny(hidden_lifetimes_in_input_paths)]
8483 /// fn foo(x: ContainsLifetime) {}
8584 /// ```
8685 ///
@@ -99,23 +98,22 @@ declare_lint! {
9998 /// themselves do not usually cause much confusion.
10099 ///
101100 /// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
102- pub HIDDEN_LIFETIMES_IN_INPUT_PATHS2 ,
101+ pub HIDDEN_LIFETIMES_IN_INPUT_PATHS ,
103102 Allow ,
104103 "hidden lifetime parameters in types in function arguments may be confusing"
105104}
106105
107106declare_lint ! {
108- /// The `hidden_lifetimes_in_output_paths2 ` lint detects the use
107+ /// The `hidden_lifetimes_in_output_paths ` lint detects the use
109108 /// of hidden lifetime parameters in types occurring as a function
110109 /// return value.
111110 ///
112111 /// ### Example
113112 ///
114113 /// ```rust,compile_fail
115- /// #![deny(hidden_lifetimes_in_output_paths2)]
116- ///
117114 /// struct ContainsLifetime<'a>(&'a i32);
118115 ///
116+ /// #[deny(hidden_lifetimes_in_output_paths)]
119117 /// fn foo(x: &i32) -> ContainsLifetime {
120118 /// ContainsLifetime(x)
121119 /// }
@@ -137,15 +135,15 @@ declare_lint! {
137135 /// lifetime].
138136 ///
139137 /// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
140- pub HIDDEN_LIFETIMES_IN_OUTPUT_PATHS2 ,
138+ pub HIDDEN_LIFETIMES_IN_OUTPUT_PATHS ,
141139 Allow ,
142140 "hidden lifetime parameters in types in function return values are deprecated"
143141}
144142
145143declare_lint_pass ! ( LifetimeStyle => [
146144 MISMATCHED_LIFETIME_SYNTAXES ,
147- HIDDEN_LIFETIMES_IN_INPUT_PATHS2 ,
148- HIDDEN_LIFETIMES_IN_OUTPUT_PATHS2 ,
145+ HIDDEN_LIFETIMES_IN_INPUT_PATHS ,
146+ HIDDEN_LIFETIMES_IN_OUTPUT_PATHS ,
149147] ) ;
150148
151149impl < ' tcx > LateLintPass < ' tcx > for LifetimeStyle {
@@ -171,8 +169,8 @@ impl<'tcx> LateLintPass<'tcx> for LifetimeStyle {
171169 }
172170
173171 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 ) ;
172+ report_hidden_in_paths ( cx, & input_map, HIDDEN_LIFETIMES_IN_INPUT_PATHS ) ;
173+ report_hidden_in_paths ( cx, & output_map, HIDDEN_LIFETIMES_IN_OUTPUT_PATHS ) ;
176174 }
177175}
178176
@@ -454,17 +452,16 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeInfoCollector<'a, 'tcx> {
454452}
455453
456454declare_lint ! {
457- /// The `hidden_lifetimes_in_type_paths2 ` lint detects the use of
455+ /// The `hidden_lifetimes_in_type_paths ` lint detects the use of
458456 /// hidden lifetime parameters in types not part of a function's
459457 /// arguments or return values.
460458 ///
461459 /// ### Example
462460 ///
463461 /// ```rust,compile_fail
464- /// #![deny(hidden_lifetimes_in_type_paths2)]
465- ///
466462 /// struct ContainsLifetime<'a>(&'a i32);
467463 ///
464+ /// #[deny(hidden_lifetimes_in_type_paths)]
468465 /// static FOO: ContainsLifetime = ContainsLifetime(&42);
469466 /// ```
470467 ///
@@ -480,7 +477,7 @@ declare_lint! {
480477 /// lifetime].
481478 ///
482479 /// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
483- pub HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
480+ pub HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
484481 Allow ,
485482 "hidden lifetime parameters in types outside function signatures are discouraged"
486483}
@@ -490,7 +487,7 @@ pub(crate) struct HiddenLifetimesInTypePaths {
490487 inside_fn_signature : bool ,
491488}
492489
493- impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ] ) ;
490+ impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS ] ) ;
494491
495492impl < ' tcx > LateLintPass < ' tcx > for HiddenLifetimesInTypePaths {
496493 #[ instrument( skip( self , cx) ) ]
@@ -533,7 +530,7 @@ impl<'tcx> LateLintPass<'tcx> for HiddenLifetimesInTypePaths {
533530 }
534531
535532 cx. emit_span_lint (
536- HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
533+ HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
537534 ty. span ,
538535 lints:: HiddenLifetimeInPath {
539536 suggestions : lints:: HiddenLifetimeInPathSuggestion { suggestions } ,
0 commit comments