@@ -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
@@ -427,17 +425,16 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeInfoCollector<'a, 'tcx> {
427425}
428426
429427declare_lint ! {
430- /// The `hidden_lifetimes_in_type_paths2 ` lint detects the use of
428+ /// The `hidden_lifetimes_in_type_paths ` lint detects the use of
431429 /// hidden lifetime parameters in types not part of a function's
432430 /// arguments or return values.
433431 ///
434432 /// ### Example
435433 ///
436434 /// ```rust,compile_fail
437- /// #![deny(hidden_lifetimes_in_type_paths2)]
438- ///
439435 /// struct ContainsLifetime<'a>(&'a i32);
440436 ///
437+ /// #[deny(hidden_lifetimes_in_type_paths)]
441438 /// static FOO: ContainsLifetime = ContainsLifetime(&42);
442439 /// ```
443440 ///
@@ -453,7 +450,7 @@ declare_lint! {
453450 /// lifetime].
454451 ///
455452 /// [placeholder lifetime]: https://doc.rust-lang.org/reference/lifetime-elision.html#lifetime-elision-in-functions
456- pub HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
453+ pub HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
457454 Allow ,
458455 "hidden lifetime parameters in types outside function signatures are discouraged"
459456}
@@ -463,7 +460,7 @@ pub(crate) struct HiddenLifetimesInTypePaths {
463460 inside_fn_signature : bool ,
464461}
465462
466- impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ] ) ;
463+ impl_lint_pass ! ( HiddenLifetimesInTypePaths => [ HIDDEN_LIFETIMES_IN_TYPE_PATHS ] ) ;
467464
468465impl < ' tcx > LateLintPass < ' tcx > for HiddenLifetimesInTypePaths {
469466 #[ instrument( skip( self , cx) ) ]
@@ -506,7 +503,7 @@ impl<'tcx> LateLintPass<'tcx> for HiddenLifetimesInTypePaths {
506503 }
507504
508505 cx. emit_span_lint (
509- HIDDEN_LIFETIMES_IN_TYPE_PATHS2 ,
506+ HIDDEN_LIFETIMES_IN_TYPE_PATHS ,
510507 ty. span ,
511508 lints:: HiddenLifetimeInPath {
512509 suggestions : lints:: HiddenLifetimeInPathSuggestion { suggestions } ,
0 commit comments