about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2019-06-27 11:28:14 +0200
committerljedrz <ljedrz@gmail.com>2019-07-04 12:53:12 +0200
commit37d7e1f22a9da3f31c117d0def02c5ea8e23a096 (patch)
tree9bfda9d90a2a0e9e1f86f8ae0ee70fb22cd50d3c /src/librustc_codegen_ssa
parent4f7ba515c2bfacde6f09e860c3cc9f37bb742481 (diff)
downloadrust-37d7e1f22a9da3f31c117d0def02c5ea8e23a096.tar.gz
rust-37d7e1f22a9da3f31c117d0def02c5ea8e23a096.zip
rename hir::map::local_def_id_from_hir_id to local_def_id
Diffstat (limited to 'src/librustc_codegen_ssa')
-rw-r--r--src/librustc_codegen_ssa/back/symbol_export.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/back/symbol_export.rs b/src/librustc_codegen_ssa/back/symbol_export.rs
index b64c9a60d97..c5553fa93cf 100644
--- a/src/librustc_codegen_ssa/back/symbol_export.rs
+++ b/src/librustc_codegen_ssa/back/symbol_export.rs
@@ -84,7 +84,7 @@ fn reachable_non_generics_provider(
             // let it through if it's included statically.
             match tcx.hir().get(hir_id) {
                 Node::ForeignItem(..) => {
-                    let def_id = tcx.hir().local_def_id_from_hir_id(hir_id);
+                    let def_id = tcx.hir().local_def_id(hir_id);
                     if tcx.is_statically_included_foreign_item(def_id) {
                         Some(def_id)
                     } else {
@@ -104,7 +104,7 @@ fn reachable_non_generics_provider(
                     node: hir::ImplItemKind::Method(..),
                     ..
                 }) => {
-                    let def_id = tcx.hir().local_def_id_from_hir_id(hir_id);
+                    let def_id = tcx.hir().local_def_id(hir_id);
                     let generics = tcx.generics_of(def_id);
                     if !generics.requires_monomorphization(tcx) &&
                         // Functions marked with #[inline] are only ever codegened