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_codegen_utils/symbol_names_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustc_codegen_utils') diff --git a/src/librustc_codegen_utils/symbol_names_test.rs b/src/librustc_codegen_utils/symbol_names_test.rs index 7ab29c5c4c3..f562744dbe7 100644 --- a/src/librustc_codegen_utils/symbol_names_test.rs +++ b/src/librustc_codegen_utils/symbol_names_test.rs @@ -33,7 +33,7 @@ impl SymbolNamesTest<'tcx> { fn process_attrs(&mut self, hir_id: hir::HirId) { let tcx = self.tcx; - let def_id = tcx.hir().local_def_id_from_hir_id(hir_id); + let def_id = tcx.hir().local_def_id(hir_id); for attr in tcx.get_attrs(def_id).iter() { if attr.check_name(SYMBOL_NAME) { // for now, can only use on monomorphic names -- cgit 1.4.1-3-g733a5