From 37d7e1f22a9da3f31c117d0def02c5ea8e23a096 Mon Sep 17 00:00:00 2001 From: ljedrz Date: Thu, 27 Jun 2019 11:28:14 +0200 Subject: rename hir::map::local_def_id_from_hir_id to local_def_id --- src/librustc_interface/proc_macro_decls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustc_interface') 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 { 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 { -- cgit 1.4.1-3-g733a5