Skip to content

Commit 010958c

Browse files
committed
rustc_metadata: add a helper macro for recording into PerDefTable's.
1 parent 47dfc2f commit 010958c

File tree

3 files changed

+498
-454
lines changed

3 files changed

+498
-454
lines changed

src/librustc_metadata/decoder.rs

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

499499
fn maybe_entry(&self, item_id: DefIndex) -> Option<Lazy<Entry<'tcx>>> {
500500
assert!(!self.is_proc_macro(item_id));
501-
self.root.entries_table.lookup(self.blob.raw_bytes(), item_id)
501+
self.root.per_def.entry.lookup(self.blob.raw_bytes(), item_id)
502502
}
503503

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

0 commit comments

Comments
 (0)