diff options
| author | ljedrz <ljedrz@gmail.com> | 2019-06-27 11:28:14 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2019-07-04 12:53:12 +0200 |
| commit | 37d7e1f22a9da3f31c117d0def02c5ea8e23a096 (patch) | |
| tree | 9bfda9d90a2a0e9e1f86f8ae0ee70fb22cd50d3c /src/librustc_codegen_utils | |
| parent | 4f7ba515c2bfacde6f09e860c3cc9f37bb742481 (diff) | |
rename hir::map::local_def_id_from_hir_id to local_def_id
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/symbol_names_test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
