about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-09-11 18:12:25 -0400
committerBen Kimock <kimockb@gmail.com>2023-09-20 16:49:13 -0400
commit6cee6b0bdecc0cc18074fc1bb61b39bcc14573d8 (patch)
treef512e668a935c6e6dbec57b7ca6d1e900d007125 /compiler/rustc_query_system/src
parent01e97981488ddb0b8194b6f4e27c3592bcd2c8d1 (diff)
PR feedback
Diffstat (limited to 'compiler/rustc_query_system/src')
-rw-r--r--compiler/rustc_query_system/src/dep_graph/serialized.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/serialized.rs b/compiler/rustc_query_system/src/dep_graph/serialized.rs
index 3fd83f79a48..7cdd02011ea 100644
--- a/compiler/rustc_query_system/src/dep_graph/serialized.rs
+++ b/compiler/rustc_query_system/src/dep_graph/serialized.rs
@@ -394,10 +394,7 @@ struct NodeInfo<K: DepKind> {
 impl<K: DepKind> Encodable<FileEncoder> for NodeInfo<K> {
     fn encode(&self, e: &mut FileEncoder) {
         let header = SerializedNodeHeader::new(self);
-        e.write_with(|dest| {
-            *dest = header.bytes;
-            header.bytes.len()
-        });
+        e.write_array(header.bytes);
 
         if header.len().is_none() {
             e.emit_usize(self.edges.len());