X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibsyntax%2Fentry.rs;h=34b5b1e5b5c84ce9c657425b2a3f7ec8d235f871;hb=7bc94cc3c2ccef8b4d393910bb978a6487db1202;hp=0b6cf30bd27d248207397ef3338ae9f62e4faff9;hpb=21bf983acbb5d7ac8fb9462cbf2cc4c280abd857;p=rust.git diff --git a/src/libsyntax/entry.rs b/src/libsyntax/entry.rs index 0b6cf30bd27..34b5b1e5b5c 100644 --- a/src/libsyntax/entry.rs +++ b/src/libsyntax/entry.rs @@ -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