add track_caller to local_def_id_to_hir_id
This commit is contained in:
parent
4ffb5c5954
commit
cdd5d60b47
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue