Get rid of the hir_owner query.
This commit is contained in:
parent
92f2e0aa62
commit
b99c3ae6d6
7 changed files with 42 additions and 77 deletions
|
@ -128,9 +128,11 @@ impl<'tcx> IfThisChanged<'tcx> {
|
|||
if attr.has_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(self.tcx, def_path_hash, dep_kinds::hir_owner)
|
||||
}
|
||||
None => DepNode::from_def_path_hash(
|
||||
self.tcx,
|
||||
def_path_hash,
|
||||
dep_kinds::hir_owner_nodes,
|
||||
),
|
||||
Some(n) => {
|
||||
match DepNode::from_label_string(self.tcx, n.as_str(), def_path_hash) {
|
||||
Ok(n) => n,
|
||||
|
|
|
@ -57,8 +57,7 @@ const BASE_FN: &[&str] = &[
|
|||
|
||||
/// DepNodes for Hir, which is pretty much everything
|
||||
const BASE_HIR: &[&str] = &[
|
||||
// hir_owner and hir_owner_nodes should be computed for all nodes
|
||||
label_strs::hir_owner,
|
||||
// hir_owner_nodes should be computed for all nodes
|
||||
label_strs::hir_owner_nodes,
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue