diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-07 17:59:11 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-11 21:09:52 +0200 |
| commit | f9ca2135101831f9dc240201e3c0e807fa2d1b1b (patch) | |
| tree | 053afb4ae26766f842d8bac2d4a7c233cb7f1f83 /compiler/rustc_query_system | |
| parent | df7daa815f4047a1cfe24ecfbc12cfd4f40fa928 (diff) | |
| download | rust-f9ca2135101831f9dc240201e3c0e807fa2d1b1b.tar.gz rust-f9ca2135101831f9dc240201e3c0e807fa2d1b1b.zip | |
remove some things that do not need to be
Diffstat (limited to 'compiler/rustc_query_system')
| -rw-r--r-- | compiler/rustc_query_system/src/dep_graph/serialized.rs | 7 |
1 files changed, 1 insertions, 6 deletions
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<D: Deps> EncoderState<D> { record_graph: &Option<Lock<DepGraphQuery>>, ) -> DepNodeIndex { node.encode::<D>(&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 |
