about 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-10 11:58:29 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-10 11:58:29 +1000
commit3186e311e526e3dad197dacc91c2d84cde2be846 (patch)
tree9a8b86ea039a286af6d64215920531f8b372702e /compiler/rustc_codegen_ssa/src
parent7f51a1b97638780a3d22979d886384ad7903cc4e (diff)
downloadrust-3186e311e526e3dad197dacc91c2d84cde2be846.tar.gz
rust-3186e311e526e3dad197dacc91c2d84cde2be846.zip
Revert dc08bc51f2c58a0f5f815a07f9bb3d671153b5a1.
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 919df193d60..771157dcad9 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()
+        encoder.finish().unwrap()
     }
 
     pub fn deserialize_rlink(data: Vec<u8>) -> Result<Self, String> {