From cdd5d60b47fef538e085620091fa70aeaa540d07 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Fri, 4 Sep 2020 09:24:44 +0200 Subject: [PATCH] add track_caller to `local_def_id_to_hir_id` --- compiler/rustc_hir/src/definitions.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_hir/src/definitions.rs b/compiler/rustc_hir/src/definitions.rs index 45735ead256..45befc7b115 100644 --- a/compiler/rustc_hir/src/definitions.rs +++ b/compiler/rustc_hir/src/definitions.rs @@ -313,6 +313,7 @@ impl Definitions { } #[inline] + #[track_caller] pub fn local_def_id_to_hir_id(&self, id: LocalDefId) -> hir::HirId { self.def_id_to_hir_id[id].unwrap() }