1
Fork 0

add track_caller to local_def_id_to_hir_id

This commit is contained in:
Bastian Kauschke 2020-09-04 09:24:44 +02:00
parent 4ffb5c5954
commit cdd5d60b47

View file

@ -313,6 +313,7 @@ impl Definitions {
} }
#[inline] #[inline]
#[track_caller]
pub fn local_def_id_to_hir_id(&self, id: LocalDefId) -> hir::HirId { pub fn local_def_id_to_hir_id(&self, id: LocalDefId) -> hir::HirId {
self.def_id_to_hir_id[id].unwrap() self.def_id_to_hir_id[id].unwrap()
} }