Skip to content

Commit

Permalink
rustc_metadata: add a helper macro for recording into PerDefTable's.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed Oct 15, 2019
1 parent 5d52a7e commit 677f0df
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 127 deletions.
2 changes: 1 addition & 1 deletion src/librustc_metadata/decoder.rs
Expand Up @@ -481,7 +481,7 @@ impl<'a, 'tcx> CrateMetadata {
}

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

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

0 comments on commit 677f0df

Please sign in to comment.