Skip to content

Commit cdd5d60

Browse files
committed
add track_caller to local_def_id_to_hir_id
1 parent 4ffb5c5 commit cdd5d60

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)