add a MetaData node and trigger reads from it
Conflicts: src/librustc_metadata/csearch.rs
This commit is contained in:
parent
7734308f89
commit
5bcdf4c192
3 changed files with 56 additions and 8 deletions
|
|
@ -32,6 +32,10 @@ pub enum DepNode<D: Clone + Debug> {
|
|||
// Represents the HIR node with the given node-id
|
||||
Hir(D),
|
||||
|
||||
// Represents the metadata for a given HIR node, typically found
|
||||
// in an extern crate.
|
||||
MetaData(D),
|
||||
|
||||
// Represents different phases in the compiler.
|
||||
CrateReader,
|
||||
CollectLanguageItems,
|
||||
|
|
@ -175,6 +179,7 @@ impl<D: Clone + Debug> DepNode<D> {
|
|||
TransCrate => Some(TransCrate),
|
||||
TransWriteMetadata => Some(TransWriteMetadata),
|
||||
Hir(ref d) => op(d).map(Hir),
|
||||
MetaData(ref d) => op(d).map(MetaData),
|
||||
CollectItem(ref d) => op(d).map(CollectItem),
|
||||
CoherenceCheckImpl(ref d) => op(d).map(CoherenceCheckImpl),
|
||||
CoherenceOverlapCheck(ref d) => op(d).map(CoherenceOverlapCheck),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue