]> git.lizzy.rs Git - rust.git/commitdiff
add MetaData DepNode variant
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 29 Mar 2016 00:01:48 +0000 (20:01 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 18 May 2016 14:10:45 +0000 (10:10 -0400)
src/librustc/dep_graph/dep_node.rs

index 3e43c8e2c93557a9625a179345ce9f22f2a7656b..b81aa58223698cec8f1f737b9fd32c67310b3c1e 100644 (file)
@@ -32,6 +32,12 @@ pub enum DepNode<D: Clone + Debug> {
     // Represents the HIR node with the given node-id
     Hir(D),
 
+    // Represents the meta-data for a node. For local def-ids, this is
+    // created by trans. For remote def-ids, we add a read of this
+    // node each time we pull the information for an item out of the
+    // crate store.
+    MetaData(D),
+
     // Represents different phases in the compiler.
     CrateReader,
     CollectLanguageItems,