From e2a1cce9c558fe84ef5a2b8e3b07f1ee1521694a Mon Sep 17 00:00:00 2001 From: varkor Date: Sat, 25 Aug 2018 15:56:16 +0100 Subject: Rename hir::map::NodeKind to hir::Node --- src/librustc_codegen_utils/symbol_names.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustc_codegen_utils') diff --git a/src/librustc_codegen_utils/symbol_names.rs b/src/librustc_codegen_utils/symbol_names.rs index de081f5f3cf..39b88b225ed 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::NodeKind; +use rustc::hir::Node; 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) { - NodeKind::ForeignItem(_) => true, + Node::ForeignItem(_) => true, _ => false, } } else { -- cgit 1.4.1-3-g733a5