// We use this for most things when incr. comp. is turned off.
[] Null,
- // Represents the body of a function or method. The def-id is that of the
- // function/method.
- [eval_always] HirBody(DefId),
-
- // Represents the HIR node with the given node-id
- [eval_always] Hir(DefId),
-
// Represents metadata from an extern crate.
[eval_always] CrateMetadata(CrateNum),
}
} else {
match dep_dep_node.kind {
- DepKind::Hir | DepKind::HirBody | DepKind::CrateMetadata => {
+ DepKind::CrateMetadata => {
if let Some(def_id) = dep_dep_node.extract_def_id(tcx) {
if def_id_corresponds_to_hir_dep_node(tcx, def_id) {
// The `DefPath` has corresponding node,
hcx: StableHashingContext<'a>,
- // We are collecting `DepNode::HirBody` hashes here so we can compute the
+ // We are collecting HIR hashes here so we can compute the
// crate hash from them later on.
hir_body_nodes: Vec<(DefPathHash, Fingerprint)>,
}
use rustc_hir::itemlikevisit::ItemLikeVisitor;
use rustc_hir::{HirId, ItemLocalId};*/
-pub fn check_crate(hir_map: &EarlyMap<'_>, sess: &rustc_session::Session) {
+pub fn check_crate(_: &EarlyMap<'_>, sess: &rustc_session::Session) {
/*hir_map.dep_graph.assert_ignored();
let errors = Lock::new(Vec::new());
// These are inputs that are expected to be pre-allocated and that
// should therefore always be red or green already.
DepKind::CrateMetadata |
- DepKind::HirBody |
- DepKind::Hir |
// These are anonymous nodes.
DepKind::TraitSelect |
if attr.check_name(sym::rustc_if_this_changed) {
let dep_node_interned = self.argument(attr);
let dep_node = match dep_node_interned {
- None => DepNode::from_def_path_hash(def_path_hash, DepKind::Hir),
+ None => DepNode::from_def_path_hash(def_path_hash, DepKind::hir_owner),
Some(n) => match DepNode::from_label_string(&n.as_str(), def_path_hash) {
Ok(n) => n,
Err(()) => {
/// DepNodes for Hir, which is pretty much everything
const BASE_HIR: &[&str] = &[
// Hir and HirBody should be computed for all nodes
- label_strs::Hir,
- label_strs::HirBody,
+ "Hir", "HirBody",
];
/// `impl` implementation of struct/trait