about summary refs log tree commit diff
path: root/src/librustc_codegen_utils
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_utils
parent4b12f700db9da92f9f6a87de86c8927c95869454 (diff)
downloadrust-11665ca45a4eb7745026040e840aef3207d5c7ce.tar.gz
rust-11665ca45a4eb7745026040e840aef3207d5c7ce.zip
Remove path prefixes from NodeKind
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_utils/symbol_names.rs b/src/librustc_codegen_utils/symbol_names.rs
index a03ca2d6218..de081f5f3cf 100644
--- a/src/librustc_codegen_utils/symbol_names.rs
+++ b/src/librustc_codegen_utils/symbol_names.rs
@@ -98,7 +98,7 @@
 //! DefPaths which are much more robust in the face of changes to the code base.
 
 use rustc::hir::def_id::{DefId, LOCAL_CRATE};
-use rustc::hir::map as hir_map;
+use rustc::hir::map::NodeKind;
 use rustc::hir::CodegenFnAttrFlags;
 use rustc::hir::map::definitions::DefPathData;
 use rustc::ich::NodeIdHashingMode;
@@ -261,7 +261,7 @@ fn compute_symbol_name<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, instance: Instance
     // FIXME(eddyb) Precompute a custom symbol name based on attributes.
     let is_foreign = if let Some(id) = node_id {
         match tcx.hir.get(id) {
-            hir_map::NodeKind::ForeignItem(_) => true,
+            NodeKind::ForeignItem(_) => true,
             _ => false,
         }
     } else {