about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/back
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-08-22 23:05:26 +0100
committervarkor <github@varkor.com>2018-08-27 21:46:13 +0100
commit11665ca45a4eb7745026040e840aef3207d5c7ce (patch)
tree737250badcf6e25eefde8e2149b23c0ab19ad63c /src/librustc_codegen_llvm/back
parent4b12f700db9da92f9f6a87de86c8927c95869454 (diff)
downloadrust-11665ca45a4eb7745026040e840aef3207d5c7ce.tar.gz
rust-11665ca45a4eb7745026040e840aef3207d5c7ce.zip
Remove path prefixes from NodeKind
Diffstat (limited to 'src/librustc_codegen_llvm/back')
-rw-r--r--src/librustc_codegen_llvm/back/symbol_export.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/librustc_codegen_llvm/back/symbol_export.rs b/src/librustc_codegen_llvm/back/symbol_export.rs
index d59cf266ee6..dd687890ff1 100644
--- a/src/librustc_codegen_llvm/back/symbol_export.rs
+++ b/src/librustc_codegen_llvm/back/symbol_export.rs
@@ -13,6 +13,7 @@ use std::sync::Arc;
 
 use monomorphize::Instance;
 use rustc::hir;
+use rustc::hir::map::NodeKind;
 use rustc::hir::CodegenFnAttrFlags;
 use rustc::hir::def_id::{CrateNum, DefId, LOCAL_CRATE, CRATE_DEF_INDEX};
 use rustc_data_structures::fingerprint::Fingerprint;
@@ -94,7 +95,7 @@ fn reachable_non_generics_provider<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
             // As a result, if this id is an FFI item (foreign item) then we only
             // let it through if it's included statically.
             match tcx.hir.get(node_id) {
-                hir::map::NodeKind::ForeignItem(..) => {
+                NodeKind::ForeignItem(..) => {
                     let def_id = tcx.hir.local_def_id(node_id);
                     if tcx.is_statically_included_foreign_item(def_id) {
                         Some(def_id)
@@ -104,14 +105,14 @@ fn reachable_non_generics_provider<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                 }
 
                 // Only consider nodes that actually have exported symbols.
-                hir::map::NodeKind::Item(&hir::Item {
+                NodeKind::Item(&hir::Item {
                     node: hir::ItemKind::Static(..),
                     ..
                 }) |
-                hir::map::NodeKind::Item(&hir::Item {
+                NodeKind::Item(&hir::Item {
                     node: hir::ItemKind::Fn(..), ..
                 }) |
-                hir::map::NodeKind::ImplItem(&hir::ImplItem {
+                NodeKind::ImplItem(&hir::ImplItem {
                     node: hir::ImplItemKind::Method(..),
                     ..
                 }) => {