@@ -223,7 +223,7 @@ fn match_type_parameter(cx: &LateContext<'_, '_>, qpath: &QPath, path: &[&str])
223
223
if !params. parenthesized;
224
224
if let Some ( ty) = params. args. iter( ) . find_map( |arg| match arg {
225
225
GenericArg :: Type ( ty) => Some ( ty) ,
226
- GenericArg :: Lifetime ( _ ) => None ,
226
+ _ => None ,
227
227
} ) ;
228
228
if let TyKind :: Path ( ref qpath) = ty. node;
229
229
if let Some ( did) = opt_def_id( cx. tables. qpath_def( qpath, cx. tcx. hir( ) . node_to_hir_id( ty. id) ) ) ;
@@ -267,7 +267,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
267
267
if let Some ( ref last) = last_path_segment( qpath) . args;
268
268
if let Some ( ty) = last. args. iter( ) . find_map( |arg| match arg {
269
269
GenericArg :: Type ( ty) => Some ( ty) ,
270
- GenericArg :: Lifetime ( _ ) => None ,
270
+ _ => None ,
271
271
} ) ;
272
272
// ty is now _ at this point
273
273
if let TyKind :: Path ( ref ty_qpath) = ty. node;
@@ -278,7 +278,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
278
278
if let Some ( ref last) = last_path_segment( ty_qpath) . args;
279
279
if let Some ( boxed_ty) = last. args. iter( ) . find_map( |arg| match arg {
280
280
GenericArg :: Type ( ty) => Some ( ty) ,
281
- GenericArg :: Lifetime ( _ ) => None ,
281
+ _ => None ,
282
282
} ) ;
283
283
then {
284
284
let ty_ty = hir_ty_to_ty( cx. tcx, boxed_ty) ;
@@ -327,7 +327,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
327
327
. map_or_else ( || [ ] . iter ( ) , |params| params. args . iter ( ) )
328
328
. filter_map ( |arg| match arg {
329
329
GenericArg :: Type ( ty) => Some ( ty) ,
330
- GenericArg :: Lifetime ( _ ) => None ,
330
+ _ => None ,
331
331
} )
332
332
} ) {
333
333
check_ty ( cx, ty, is_local) ;
@@ -340,7 +340,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
340
340
. map_or_else ( || [ ] . iter ( ) , |params| params. args . iter ( ) )
341
341
. filter_map ( |arg| match arg {
342
342
GenericArg :: Type ( ty) => Some ( ty) ,
343
- GenericArg :: Lifetime ( _ ) => None ,
343
+ _ => None ,
344
344
} )
345
345
} ) {
346
346
check_ty ( cx, ty, is_local) ;
@@ -351,7 +351,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
351
351
if let Some ( ref params) = seg. args {
352
352
for ty in params. args . iter ( ) . filter_map ( |arg| match arg {
353
353
GenericArg :: Type ( ty) => Some ( ty) ,
354
- GenericArg :: Lifetime ( _ ) => None ,
354
+ _ => None ,
355
355
} ) {
356
356
check_ty ( cx, ty, is_local) ;
357
357
}
@@ -387,7 +387,7 @@ fn check_ty_rptr(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool, lt:
387
387
if !params. parenthesized;
388
388
if let Some ( inner) = params. args. iter( ) . find_map( |arg| match arg {
389
389
GenericArg :: Type ( ty) => Some ( ty) ,
390
- GenericArg :: Lifetime ( _ ) => None ,
390
+ _ => None ,
391
391
} ) ;
392
392
then {
393
393
if is_any_trait( inner) {
@@ -2138,7 +2138,7 @@ impl<'tcx> ImplicitHasherType<'tcx> {
2138
2138
. iter ( )
2139
2139
. filter_map ( |arg| match arg {
2140
2140
GenericArg :: Type ( ty) => Some ( ty) ,
2141
- GenericArg :: Lifetime ( _ ) => None ,
2141
+ _ => None ,
2142
2142
} )
2143
2143
. collect ( ) ;
2144
2144
let params_len = params. len ( ) ;
0 commit comments