summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-08 07:26:35 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-08 09:21:05 +1000
commitdc08bc51f2c58a0f5f815a07f9bb3d671153b5a1 (patch)
tree9ca34ee0264a36e5719ddba0f0aeee95e8896eb0 /compiler/rustc_codegen_ssa/src
parent1acbe7573dc32f917f51a784a36b7afc690900e3 (diff)
downloadrust-dc08bc51f2c58a0f5f815a07f9bb3d671153b5a1.tar.gz
rust-dc08bc51f2c58a0f5f815a07f9bb3d671153b5a1.zip
Move `finish` out of the `Encoder` trait.
This simplifies things, but requires making `CacheEncoder` non-generic.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-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 771157dcad9..919df193d60 100644
--- a/compiler/rustc_codegen_ssa/src/lib.rs
+++ b/compiler/rustc_codegen_ssa/src/lib.rs
@@ -210,7 +210,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> {