@@ -212,7 +212,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Attributes {
212212 for item in items {
213213 if_chain ! {
214214 if let NestedMetaItem :: MetaItem ( mi) = & item;
215- if let MetaItemKind :: NameValue ( lit) = & mi. node ;
215+ if let MetaItemKind :: NameValue ( lit) = & mi. kind ;
216216 if mi. check_name( sym!( since) ) ;
217217 then {
218218 check_semver( cx, item. span( ) , lit) ;
@@ -227,7 +227,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Attributes {
227227 if is_relevant_item ( cx, item) {
228228 check_attrs ( cx, item. span , item. ident . name , & item. attrs )
229229 }
230- match item. node {
230+ match item. kind {
231231 ItemKind :: ExternCrate ( ..) | ItemKind :: Use ( ..) => {
232232 let skip_unused_imports = item. attrs . iter ( ) . any ( |attr| attr. check_name ( sym ! ( macro_use) ) ) ;
233233
@@ -242,7 +242,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Attributes {
242242 // whitelist `unused_imports`, `deprecated` and `unreachable_pub` for `use` items
243243 // and `unused_imports` for `extern crate` items with `macro_use`
244244 for lint in lint_list {
245- match item. node {
245+ match item. kind {
246246 ItemKind :: Use ( ..) => {
247247 if is_word ( lint, sym ! ( unused_imports) )
248248 || is_word ( lint, sym ! ( deprecated) )
@@ -355,22 +355,22 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
355355}
356356
357357fn is_relevant_item ( cx : & LateContext < ' _ , ' _ > , item : & Item ) -> bool {
358- if let ItemKind :: Fn ( _, _, _, eid) = item. node {
358+ if let ItemKind :: Fn ( _, _, _, eid) = item. kind {
359359 is_relevant_expr ( cx, cx. tcx . body_tables ( eid) , & cx. tcx . hir ( ) . body ( eid) . value )
360360 } else {
361361 true
362362 }
363363}
364364
365365fn is_relevant_impl ( cx : & LateContext < ' _ , ' _ > , item : & ImplItem ) -> bool {
366- match item. node {
366+ match item. kind {
367367 ImplItemKind :: Method ( _, eid) => is_relevant_expr ( cx, cx. tcx . body_tables ( eid) , & cx. tcx . hir ( ) . body ( eid) . value ) ,
368368 _ => false ,
369369 }
370370}
371371
372372fn is_relevant_trait ( cx : & LateContext < ' _ , ' _ > , item : & TraitItem ) -> bool {
373- match item. node {
373+ match item. kind {
374374 TraitItemKind :: Method ( _, TraitMethod :: Required ( _) ) => true ,
375375 TraitItemKind :: Method ( _, TraitMethod :: Provided ( eid) ) => {
376376 is_relevant_expr ( cx, cx. tcx . body_tables ( eid) , & cx. tcx . hir ( ) . body ( eid) . value )
@@ -381,7 +381,7 @@ fn is_relevant_trait(cx: &LateContext<'_, '_>, item: &TraitItem) -> bool {
381381
382382fn is_relevant_block ( cx : & LateContext < ' _ , ' _ > , tables : & ty:: TypeckTables < ' _ > , block : & Block ) -> bool {
383383 if let Some ( stmt) = block. stmts . first ( ) {
384- match & stmt. node {
384+ match & stmt. kind {
385385 StmtKind :: Local ( _) => true ,
386386 StmtKind :: Expr ( expr) | StmtKind :: Semi ( expr) => is_relevant_expr ( cx, tables, expr) ,
387387 _ => false ,
@@ -392,12 +392,12 @@ fn is_relevant_block(cx: &LateContext<'_, '_>, tables: &ty::TypeckTables<'_>, bl
392392}
393393
394394fn is_relevant_expr ( cx : & LateContext < ' _ , ' _ > , tables : & ty:: TypeckTables < ' _ > , expr : & Expr ) -> bool {
395- match & expr. node {
395+ match & expr. kind {
396396 ExprKind :: Block ( block, _) => is_relevant_block ( cx, tables, block) ,
397397 ExprKind :: Ret ( Some ( e) ) => is_relevant_expr ( cx, tables, e) ,
398398 ExprKind :: Ret ( None ) | ExprKind :: Break ( _, None ) => false ,
399399 ExprKind :: Call ( path_expr, _) => {
400- if let ExprKind :: Path ( qpath) = & path_expr. node {
400+ if let ExprKind :: Path ( qpath) = & path_expr. kind {
401401 if let Some ( fun_id) = tables. qpath_res ( qpath, path_expr. hir_id ) . opt_def_id ( ) {
402402 !match_def_path ( cx, fun_id, & paths:: BEGIN_PANIC )
403403 } else {
@@ -464,7 +464,7 @@ fn check_attrs(cx: &LateContext<'_, '_>, span: Span, name: Name, attrs: &[Attrib
464464}
465465
466466fn check_semver ( cx : & LateContext < ' _ , ' _ > , span : Span , lit : & Lit ) {
467- if let LitKind :: Str ( is, _) = lit. node {
467+ if let LitKind :: Str ( is, _) = lit. kind {
468468 if Version :: parse ( & is. as_str ( ) ) . is_ok ( ) {
469469 return ;
470470 }
0 commit comments