diff options
| author | varkor <github@varkor.com> | 2018-08-25 15:56:16 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-08-27 21:46:23 +0100 |
| commit | e2a1cce9c558fe84ef5a2b8e3b07f1ee1521694a (patch) | |
| tree | 18b53e5b0a63362b7e07725507abad1471e31c79 /src/librustc_codegen_utils | |
| parent | ecbdfb49882fa6db7e45d9fd676f54a6454d79fe (diff) | |
| download | rust-e2a1cce9c558fe84ef5a2b8e3b07f1ee1521694a.tar.gz rust-e2a1cce9c558fe84ef5a2b8e3b07f1ee1521694a.zip | |
Rename hir::map::NodeKind to hir::Node
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/symbol_names.rs | 4 |
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 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 { |
