incr.comp.: Remove unused DepKind::WorkProduct.
This commit is contained in:
parent
702ce8f0a6
commit
d948af1d37
3 changed files with 3 additions and 27 deletions
|
@ -459,10 +459,6 @@ define_dep_nodes!( <'tcx>
|
||||||
// Represents metadata from an extern crate.
|
// Represents metadata from an extern crate.
|
||||||
[input] CrateMetadata(CrateNum),
|
[input] CrateMetadata(CrateNum),
|
||||||
|
|
||||||
// Represents some artifact that we save to disk. Note that these
|
|
||||||
// do not have a def-id as part of their identifier.
|
|
||||||
[] WorkProduct(WorkProductId),
|
|
||||||
|
|
||||||
// Represents different phases in the compiler.
|
// Represents different phases in the compiler.
|
||||||
[] RegionScopeTree(DefId),
|
[] RegionScopeTree(DefId),
|
||||||
[eval_always] Coherence,
|
[eval_always] Coherence,
|
||||||
|
@ -781,13 +777,6 @@ impl WorkProductId {
|
||||||
hash: fingerprint
|
hash: fingerprint
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_dep_node(self) -> DepNode {
|
|
||||||
DepNode {
|
|
||||||
kind: DepKind::WorkProduct,
|
|
||||||
hash: self.hash,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl_stable_hash_for!(struct ::dep_graph::WorkProductId {
|
impl_stable_hash_for!(struct ::dep_graph::WorkProductId {
|
||||||
|
|
|
@ -721,9 +721,8 @@ pub fn force_from_dep_node<'a, 'gcx, 'lcx>(tcx: TyCtxt<'a, 'gcx, 'lcx>,
|
||||||
DepKind::EraseRegionsTy |
|
DepKind::EraseRegionsTy |
|
||||||
DepKind::NormalizeTy |
|
DepKind::NormalizeTy |
|
||||||
|
|
||||||
// These are just odd
|
// This one should never occur in this context
|
||||||
DepKind::Null |
|
DepKind::Null => {
|
||||||
DepKind::WorkProduct => {
|
|
||||||
bug!("force_from_dep_node() - Encountered {:?}", dep_node.kind)
|
bug!("force_from_dep_node() - Encountered {:?}", dep_node.kind)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
|
|
||||||
use collector::InliningMap;
|
use collector::InliningMap;
|
||||||
use common;
|
use common;
|
||||||
use rustc::dep_graph::{DepNode, WorkProductId};
|
use rustc::dep_graph::WorkProductId;
|
||||||
use rustc::hir::def_id::DefId;
|
use rustc::hir::def_id::DefId;
|
||||||
use rustc::hir::map::DefPathData;
|
use rustc::hir::map::DefPathData;
|
||||||
use rustc::middle::trans::{Linkage, Visibility};
|
use rustc::middle::trans::{Linkage, Visibility};
|
||||||
|
@ -147,10 +147,6 @@ pub trait CodegenUnitExt<'tcx> {
|
||||||
WorkProductId::from_cgu_name(self.name())
|
WorkProductId::from_cgu_name(self.name())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn work_product_dep_node(&self) -> DepNode {
|
|
||||||
self.work_product_id().to_dep_node()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn items_in_deterministic_order<'a>(&self,
|
fn items_in_deterministic_order<'a>(&self,
|
||||||
tcx: TyCtxt<'a, 'tcx, 'tcx>)
|
tcx: TyCtxt<'a, 'tcx, 'tcx>)
|
||||||
-> Vec<(TransItem<'tcx>,
|
-> Vec<(TransItem<'tcx>,
|
||||||
|
@ -253,14 +249,6 @@ pub fn partition<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||||
cgu1.name().cmp(cgu2.name())
|
cgu1.name().cmp(cgu2.name())
|
||||||
});
|
});
|
||||||
|
|
||||||
if tcx.sess.opts.enable_dep_node_debug_strs() {
|
|
||||||
for cgu in &result {
|
|
||||||
let dep_node = cgu.work_product_dep_node();
|
|
||||||
tcx.dep_graph.register_dep_node_debug_str(dep_node,
|
|
||||||
|| cgu.name().to_string());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue