Skip to content

Commit

Permalink
Auto merge of #76315 - lcnr:map-track-caller, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
add `#[track_caller]` to `local_def_id_to_hir_id`

Improves one of the more frequent ICE
  • Loading branch information
bors committed Sep 4, 2020
2 parents d245464 + cdd5d60 commit 42d896a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_hir/src/definitions.rs
Expand Up @@ -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()
}
Expand Down

0 comments on commit 42d896a

Please sign in to comment.