]> git.lizzy.rs Git - rust.git/commitdiff
Remove `AllLocalTraitImpls`
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 8 Feb 2020 03:26:12 +0000 (04:26 +0100)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 14 Mar 2020 21:52:29 +0000 (22:52 +0100)
src/librustc/dep_graph/dep_node.rs
src/librustc/hir/map/collector.rs
src/librustc/ty/query/mod.rs

index 755bc15ba9380f44ce022f7be5cebfa8787e9031..36b5f4de099e39e1f8ddadf53453443e85e7ebda 100644 (file)
@@ -35,7 +35,7 @@
 //! "infer" some properties for each kind of `DepNode`:
 //!
 //! * Whether a `DepNode` of a given kind has any parameters at all. Some
-//!   `DepNode`s, like `AllLocalTraitImpls`, represent global concepts with only one value.
+//!   `DepNode`s could represent global concepts with only one value.
 //! * Whether it is possible, in principle, to reconstruct a query key from a
 //!   given `DepNode`. Many `DepKind`s only require a single `DefId` parameter,
 //!   in which case it is possible to map the node's fingerprint back to the
@@ -351,8 +351,6 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
     // Represents metadata from an extern crate.
     [eval_always] CrateMetadata(CrateNum),
 
-    [eval_always] AllLocalTraitImpls,
-
     [anon] TraitSelect,
 
     [] CompileCodegenUnit(Symbol),
index 231d0ee482196ac11fd3f72b780578d2951a8d08..5c2808fee0d9923d7c005ee0e529cec6a640733c 100644 (file)
@@ -156,14 +156,6 @@ pub(super) fn root(
             )
         };
 
-        {
-            dep_graph.input_task(
-                DepNode::new_no_params(DepKind::AllLocalTraitImpls),
-                &mut hcx,
-                &krate.trait_impls,
-            );
-        }
-
         let mut collector = NodeCollector {
             arena,
             krate,
index 3dbcf9228d237b5dc49780c02606e29317a360e5..d1141a489901c93ba80e28a232c0221067b1bbc9 100644 (file)
@@ -179,7 +179,6 @@ pub fn force_from_dep_node<'tcx>(tcx: TyCtxt<'tcx>, dep_node: &DepNode) -> bool
     rustc_dep_node_force!([dep_node, tcx]
         // These are inputs that are expected to be pre-allocated and that
         // should therefore always be red or green already.
-        DepKind::AllLocalTraitImpls |
         DepKind::CrateMetadata |
         DepKind::HirBody |
         DepKind::Hir |