]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/coherence/unsafety.rs
Rollup merge of #61879 - stjepang:stabilize-todo, r=withoutboats
[rust.git] / src / librustc_typeck / coherence / unsafety.rs
index 07fbfddd96e434e248fd323b3f56d5df41069cb7..b7cc6feee4453eee521e79f823dea7b4ee002965 100644 (file)
@@ -71,7 +71,7 @@ fn check_unsafety_coherence(&mut self,
 
 impl ItemLikeVisitor<'v> for UnsafetyChecker<'tcx> {
     fn visit_item(&mut self, item: &'v hir::Item) {
-        if let hir::ItemKind::Impl(unsafety, polarity, _, ref generics, ..) = item.node {
+        if let hir::ItemKind::Impl(unsafety, polarity, _, ref generics, ..) = item.kind {
             self.check_unsafety_coherence(item, Some(generics), unsafety, polarity);
         }
     }