]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/entry.rs
Rollup merge of #67989 - ollie27:rustdoc_unstable, r=GuillaumeGomez
[rust.git] / src / libsyntax / entry.rs
index 0b6cf30bd27d248207397ef3338ae9f62e4faff9..0a72019bfe986af738da8b1932e2629818da9e52 100644 (file)
@@ -1,6 +1,6 @@
-use crate::attr;
 use crate::ast::{Item, ItemKind};
-use crate::symbol::sym;
+use crate::attr;
+use rustc_span::symbol::sym;
 
 pub enum EntryPointType {
     None,
@@ -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