Auto merge of #76315 - lcnr:map-track-caller, r=Mark-Simulacrum
add `#[track_caller]` to `local_def_id_to_hir_id` Improves one of the more frequent ICE
This commit is contained in:
commit
42d896afbd
@ -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…
Reference in New Issue
Block a user