Skip to content

Commit 677f0df

Browse files
committed
rustc_metadata: add a helper macro for recording into PerDefTable's.
1 parent 5d52a7e commit 677f0df

File tree

3 files changed

+118
-127
lines changed

3 files changed

+118
-127
lines changed

src/librustc_metadata/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ impl<'a, 'tcx> CrateMetadata {
481481
}
482482

483483
fn maybe_entry(&self, item_id: DefIndex) -> Option<Lazy<Entry<'tcx>>> {
484-
self.root.entries_table.lookup(self.blob.raw_bytes(), item_id)
484+
self.root.per_def.entry.lookup(self.blob.raw_bytes(), item_id)
485485
}
486486

487487
fn entry(&self, item_id: DefIndex) -> Entry<'tcx> {

0 commit comments

Comments
 (0)