Skip to content

Commit 5d36420

Browse files
committed
Remove AllLocalTraitImpls
1 parent 4c51991 commit 5d36420

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/librustc/dep_graph/dep_node.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//! "infer" some properties for each kind of `DepNode`:
3636
//!
3737
//! * Whether a `DepNode` of a given kind has any parameters at all. Some
38-
//! `DepNode`s, like `AllLocalTraitImpls`, represent global concepts with only one value.
38+
//! `DepNode`s, like `?`, represent global concepts with only one value.
3939
//! * Whether it is possible, in principle, to reconstruct a query key from a
4040
//! given `DepNode`. Many `DepKind`s only require a single `DefId` parameter,
4141
//! in which case it is possible to map the node's fingerprint back to the
@@ -404,8 +404,6 @@ rustc_dep_node_append!([define_dep_nodes!][ <'tcx>
404404
// Represents metadata from an extern crate.
405405
[eval_always] CrateMetadata(CrateNum),
406406

407-
[eval_always] AllLocalTraitImpls,
408-
409407
[anon] TraitSelect,
410408

411409
[] CompileCodegenUnit(Symbol),

src/librustc/hir/map/collector.rs

-8
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,6 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
155155
)
156156
};
157157

158-
{
159-
dep_graph.input_task(
160-
DepNode::new_no_params(DepKind::AllLocalTraitImpls),
161-
&mut hcx,
162-
&krate.trait_impls,
163-
);
164-
}
165-
166158
let mut collector = NodeCollector {
167159
arena,
168160
krate,

src/librustc/ty/query/plumbing.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,6 @@ pub fn force_from_dep_node(tcx: TyCtxt<'_>, dep_node: &DepNode) -> bool {
11761176
rustc_dep_node_force!([dep_node, tcx]
11771177
// These are inputs that are expected to be pre-allocated and that
11781178
// should therefore always be red or green already.
1179-
DepKind::AllLocalTraitImpls |
11801179
DepKind::CrateMetadata |
11811180
DepKind::HirBody |
11821181
DepKind::Hir |

0 commit comments

Comments
 (0)