]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/entry.rs
Rename `Item.node` to `Item.kind`
[rust.git] / src / libsyntax / entry.rs
index 0b6cf30bd27d248207397ef3338ae9f62e4faff9..34b5b1e5b5c84ce9c657425b2a3f7ec8d235f871 100644 (file)
@@ -13,7 +13,7 @@ pub enum EntryPointType {
 // Beware, this is duplicated in librustc/middle/entry.rs, make sure to keep
 // them in sync.
 pub fn entry_point_type(item: &Item, depth: usize) -> EntryPointType {
-    match item.node {
+    match item.kind {
         ItemKind::Fn(..) => {
             if attr::contains_name(&item.attrs, sym::start) {
                 EntryPointType::Start