@@ -18,7 +18,7 @@ use rustc_ast::AttrStyle;
1818use rustc_hir:: intravisit:: FnKind ;
1919use rustc_hir:: {
2020 Block , BlockCheckMode , Body , Closure , Destination , Expr , ExprKind , FieldDef , FnHeader , HirId , Impl , ImplItem ,
21- ImplItemKind , IsAuto , Item , ItemKind , LoopSource , MatchSource , MutTy , Node , QPath , TraitItem , TraitItemKind , Ty ,
21+ ImplItemKind , Item , ItemKind , LoopSource , MatchSource , MutTy , Node , QPath , TraitItem , TraitItemKind , Ty ,
2222 TyKind , UnOp , UnsafeSource , Unsafety , Variant , VariantData , YieldSource ,
2323} ;
2424use rustc_lint:: { LateContext , LintContext } ;
@@ -205,12 +205,11 @@ fn item_search_pat(item: &Item<'_>) -> (Pat, Pat) {
205205 ItemKind :: Struct ( VariantData :: Struct ( ..) , _) => ( Pat :: Str ( "struct" ) , Pat :: Str ( "}" ) ) ,
206206 ItemKind :: Struct ( ..) => ( Pat :: Str ( "struct" ) , Pat :: Str ( ";" ) ) ,
207207 ItemKind :: Union ( ..) => ( Pat :: Str ( "union" ) , Pat :: Str ( "}" ) ) ,
208- ItemKind :: Trait ( _ , Unsafety :: Unsafe , ..)
208+ ItemKind :: Trait ( Unsafety :: Unsafe , ..)
209209 | ItemKind :: Impl ( Impl {
210210 unsafety : Unsafety :: Unsafe ,
211211 ..
212212 } ) => ( Pat :: Str ( "unsafe" ) , Pat :: Str ( "}" ) ) ,
213- ItemKind :: Trait ( IsAuto :: Yes , ..) => ( Pat :: Str ( "auto" ) , Pat :: Str ( "}" ) ) ,
214213 ItemKind :: Trait ( ..) => ( Pat :: Str ( "trait" ) , Pat :: Str ( "}" ) ) ,
215214 ItemKind :: Impl ( _) => ( Pat :: Str ( "impl" ) , Pat :: Str ( "}" ) ) ,
216215 _ => return ( Pat :: Str ( "" ) , Pat :: Str ( "" ) ) ,
0 commit comments