about summary refs log tree commit diff
path: root/src/librustc_interface
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_interface
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_interface')
-rw-r--r--src/librustc_interface/proc_macro_decls.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_interface/proc_macro_decls.rs b/src/librustc_interface/proc_macro_decls.rs
index d888c9e57d3..56180bcad06 100644
--- a/src/librustc_interface/proc_macro_decls.rs
+++ b/src/librustc_interface/proc_macro_decls.rs
@@ -16,7 +16,7 @@ fn proc_macro_decls_static(tcx: TyCtxt<'_>, cnum: CrateNum) -> Option<DefId> {
     let mut finder = Finder { decls: None };
     tcx.hir().krate().visit_all_item_likes(&mut finder);
 
-    finder.decls.map(|id| tcx.hir().local_def_id_from_hir_id(id))
+    finder.decls.map(|id| tcx.hir().local_def_id(id))
 }
 
 struct Finder {