diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-09-04 09:24:44 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-09-04 09:24:44 +0200 |
| commit | cdd5d60b47fef538e085620091fa70aeaa540d07 (patch) | |
| tree | 1907b0fd2081e10914de1b6c474a67dfc633f05c /compiler | |
| parent | 4ffb5c5954a304daf47a567b34e74e421db86d98 (diff) | |
| download | rust-cdd5d60b47fef538e085620091fa70aeaa540d07.tar.gz rust-cdd5d60b47fef538e085620091fa70aeaa540d07.zip | |
add track_caller to `local_def_id_to_hir_id`
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir/src/definitions.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/definitions.rs b/compiler/rustc_hir/src/definitions.rs index 45735ead256..45befc7b115 100644 --- a/compiler/rustc_hir/src/definitions.rs +++ b/compiler/rustc_hir/src/definitions.rs @@ -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() } |
