From f9ca2135101831f9dc240201e3c0e807fa2d1b1b Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Sun, 7 Apr 2024 17:59:11 +0200 Subject: remove some things that do not need to be --- compiler/rustc_query_system/src/dep_graph/serialized.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'compiler/rustc_query_system') diff --git a/compiler/rustc_query_system/src/dep_graph/serialized.rs b/compiler/rustc_query_system/src/dep_graph/serialized.rs index 2bc7cb99547..6042aa6a2d2 100644 --- a/compiler/rustc_query_system/src/dep_graph/serialized.rs +++ b/compiler/rustc_query_system/src/dep_graph/serialized.rs @@ -541,12 +541,7 @@ impl EncoderState { record_graph: &Option>, ) -> DepNodeIndex { node.encode::(&mut self.encoder); - self.record( - node.node, - node.edges.len(), - |_| node.edges[..].iter().copied().collect(), - record_graph, - ) + self.record(node.node, node.edges.len(), |_| node.edges[..].to_vec(), record_graph) } /// Encodes a node that was promoted from the previous graph. It reads the information directly from -- cgit 1.4.1-3-g733a5