Skip to content

Commit d73268b

Browse files
committed
Remove input_task
1 parent b97d438 commit d73268b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/librustc/dep_graph/graph.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -225,28 +225,6 @@ impl DepGraph {
225225
)
226226
}
227227

228-
/// Creates a new dep-graph input with value `input`
229-
pub fn input_task<'a, C, R>(&self, key: DepNode, cx: C, input: R) -> (R, DepNodeIndex)
230-
where
231-
C: DepGraphSafe + StableHashingContextProvider<'a>,
232-
R: for<'b> HashStable<StableHashingContext<'b>>,
233-
{
234-
fn identity_fn<C, A>(_: C, arg: A) -> A {
235-
arg
236-
}
237-
238-
self.with_task_impl(
239-
key,
240-
cx,
241-
input,
242-
true,
243-
identity_fn,
244-
|_| None,
245-
|data, key, fingerprint, _| data.alloc_node(key, SmallVec::new(), fingerprint),
246-
hash_result::<R>,
247-
)
248-
}
249-
250228
fn with_task_impl<'a, C, A, R>(
251229
&self,
252230
key: DepNode,

0 commit comments

Comments
 (0)