Replace write with write_all

This commit is contained in:
bjorn3 2020-10-25 13:33:39 +01:00
parent d2b8406c20
commit 8ec977e763

View File

@ -262,7 +262,7 @@ pub(crate) fn write_clif_file<'tcx>(
writeln!(file, "set enable_simd")?;
writeln!(file, "target {} haswell", target_triple)?;
writeln!(file, "")?;
file.write(clif.as_bytes())?;
file.write_all(clif.as_bytes())?;
};
if let Err(err) = res {
tcx.sess.warn(&format!("err writing clif file: {}", err));