@@ -223,7 +223,7 @@ fn match_type_parameter(cx: &LateContext<'_, '_>, qpath: &QPath, path: &[&str])
223223 if !params. parenthesized;
224224 if let Some ( ty) = params. args. iter( ) . find_map( |arg| match arg {
225225 GenericArg :: Type ( ty) => Some ( ty) ,
226- GenericArg :: Lifetime ( _ ) => None ,
226+ _ => None ,
227227 } ) ;
228228 if let TyKind :: Path ( ref qpath) = ty. node;
229229 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) {
267267 if let Some ( ref last) = last_path_segment( qpath) . args;
268268 if let Some ( ty) = last. args. iter( ) . find_map( |arg| match arg {
269269 GenericArg :: Type ( ty) => Some ( ty) ,
270- GenericArg :: Lifetime ( _ ) => None ,
270+ _ => None ,
271271 } ) ;
272272 // ty is now _ at this point
273273 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) {
278278 if let Some ( ref last) = last_path_segment( ty_qpath) . args;
279279 if let Some ( boxed_ty) = last. args. iter( ) . find_map( |arg| match arg {
280280 GenericArg :: Type ( ty) => Some ( ty) ,
281- GenericArg :: Lifetime ( _ ) => None ,
281+ _ => None ,
282282 } ) ;
283283 then {
284284 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) {
327327 . map_or_else ( || [ ] . iter ( ) , |params| params. args . iter ( ) )
328328 . filter_map ( |arg| match arg {
329329 GenericArg :: Type ( ty) => Some ( ty) ,
330- GenericArg :: Lifetime ( _ ) => None ,
330+ _ => None ,
331331 } )
332332 } ) {
333333 check_ty ( cx, ty, is_local) ;
@@ -340,7 +340,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
340340 . map_or_else ( || [ ] . iter ( ) , |params| params. args . iter ( ) )
341341 . filter_map ( |arg| match arg {
342342 GenericArg :: Type ( ty) => Some ( ty) ,
343- GenericArg :: Lifetime ( _ ) => None ,
343+ _ => None ,
344344 } )
345345 } ) {
346346 check_ty ( cx, ty, is_local) ;
@@ -351,7 +351,7 @@ fn check_ty(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool) {
351351 if let Some ( ref params) = seg. args {
352352 for ty in params. args . iter ( ) . filter_map ( |arg| match arg {
353353 GenericArg :: Type ( ty) => Some ( ty) ,
354- GenericArg :: Lifetime ( _ ) => None ,
354+ _ => None ,
355355 } ) {
356356 check_ty ( cx, ty, is_local) ;
357357 }
@@ -387,7 +387,7 @@ fn check_ty_rptr(cx: &LateContext<'_, '_>, hir_ty: &hir::Ty, is_local: bool, lt:
387387 if !params. parenthesized;
388388 if let Some ( inner) = params. args. iter( ) . find_map( |arg| match arg {
389389 GenericArg :: Type ( ty) => Some ( ty) ,
390- GenericArg :: Lifetime ( _ ) => None ,
390+ _ => None ,
391391 } ) ;
392392 then {
393393 if is_any_trait( inner) {
@@ -2138,7 +2138,7 @@ impl<'tcx> ImplicitHasherType<'tcx> {
21382138 . iter ( )
21392139 . filter_map ( |arg| match arg {
21402140 GenericArg :: Type ( ty) => Some ( ty) ,
2141- GenericArg :: Lifetime ( _ ) => None ,
2141+ _ => None ,
21422142 } )
21432143 . collect ( ) ;
21442144 let params_len = params. len ( ) ;
0 commit comments