Skip to content

Commit 42d896a

Browse files
committed
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
2 parents d245464 + cdd5d60 commit 42d896a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_hir/src/definitions.rs

+1
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ impl Definitions {
313313
}
314314

315315
#[inline]
316+
#[track_caller]
316317
pub fn local_def_id_to_hir_id(&self, id: LocalDefId) -> hir::HirId {
317318
self.def_id_to_hir_id[id].unwrap()
318319
}

0 commit comments

Comments
 (0)