about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-16 16:00:25 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-16 16:20:32 +1000
commitbb02cc47c49ee3cc1e913c243d69ee7cb23df598 (patch)
tree957f4eb12de558ee321f9a012c4cd1468c54b34d /compiler/rustc_codegen_ssa/src/lib.rs
parentca983054e19afd74d63c3ed37997f3bf30fe85d0 (diff)
downloadrust-bb02cc47c49ee3cc1e913c243d69ee7cb23df598.tar.gz
rust-bb02cc47c49ee3cc1e913c243d69ee7cb23df598.zip
Move `finish` out of the `Encoder` trait.
This simplifies things, but requires making `CacheEncoder` non-generic.

(This was previously merged as commit 4 in #94732 and then was reverted
in #97905 because it caused a perf regression.)
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/lib.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/lib.rs b/compiler/rustc_codegen_ssa/src/lib.rs
index 750432b0b26..6c30923bc3d 100644
--- a/compiler/rustc_codegen_ssa/src/lib.rs
+++ b/compiler/rustc_codegen_ssa/src/lib.rs
@@ -211,7 +211,7 @@ impl CodegenResults {
         encoder.emit_raw_bytes(&RLINK_VERSION.to_be_bytes());
         encoder.emit_str(RUSTC_VERSION.unwrap());
         Encodable::encode(codegen_results, &mut encoder);
-        encoder.finish().unwrap()
+        encoder.finish()
     }
 
     pub fn deserialize_rlink(data: Vec<u8>) -> Result<Self, String> {