diff options
| author | ljedrz <ljedrz@gmail.com> | 2019-03-04 09:00:30 +0100 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2019-03-07 09:22:43 +0100 |
| commit | cd06038b54687bb4040e3d0a8b7bc4e8a3618ba8 (patch) | |
| tree | b7b357f82da07902f6d9ab586cfad6aaf7b12a13 /src/librustc_codegen_llvm | |
| parent | 88f755f8a84df1d9e6b17cf10c96ae8b93481b2e (diff) | |
| download | rust-cd06038b54687bb4040e3d0a8b7bc4e8a3618ba8.tar.gz rust-cd06038b54687bb4040e3d0a8b7bc4e8a3618ba8.zip | |
HirIdification: replace NodeId method calls
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/consts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/consts.rs b/src/librustc_codegen_llvm/consts.rs index 4c88d4f0e63..8c83e9ef538 100644 --- a/src/librustc_codegen_llvm/consts.rs +++ b/src/librustc_codegen_llvm/consts.rs @@ -213,10 +213,10 @@ impl CodegenCx<'ll, 'tcx> { debug!("get_static: sym={} instance={:?}", sym, instance); - let g = if let Some(id) = self.tcx.hir().as_local_node_id(def_id) { + let g = if let Some(id) = self.tcx.hir().as_local_hir_id(def_id) { let llty = self.layout_of(ty).llvm_type(self); - let (g, attrs) = match self.tcx.hir().get(id) { + let (g, attrs) = match self.tcx.hir().get_by_hir_id(id) { Node::Item(&hir::Item { ref attrs, span, node: hir::ItemKind::Static(..), .. }) => { |
