]> git.lizzy.rs Git - rust.git/commitdiff
Remove `input_task`
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sun, 9 Feb 2020 09:31:13 +0000 (10:31 +0100)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 14 Mar 2020 21:52:30 +0000 (22:52 +0100)
src/librustc/dep_graph/graph.rs

index f5d68e8074dfaf53bc949cca08af9ea787327e8d..8a8ae60c813968c119575a18780d8dde1f71a111 100644 (file)
@@ -225,28 +225,6 @@ pub fn with_task<'a, C, A, R>(
         )
     }
 
-    /// Creates a new dep-graph input with value `input`
-    pub fn input_task<'a, C, R>(&self, key: DepNode, cx: C, input: R) -> (R, DepNodeIndex)
-    where
-        C: DepGraphSafe + StableHashingContextProvider<'a>,
-        R: for<'b> HashStable<StableHashingContext<'b>>,
-    {
-        fn identity_fn<C, A>(_: C, arg: A) -> A {
-            arg
-        }
-
-        self.with_task_impl(
-            key,
-            cx,
-            input,
-            true,
-            identity_fn,
-            |_| None,
-            |data, key, fingerprint, _| data.alloc_node(key, SmallVec::new(), fingerprint),
-            hash_result::<R>,
-        )
-    }
-
     fn with_task_impl<'a, C, A, R>(
         &self,
         key: DepNode,