diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-10-27 21:26:43 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-11-22 22:49:22 -0500 |
| commit | fbaa24ee35dffb044e4895ad68f01c3f06046275 (patch) | |
| tree | 8e56d12161916599c3df82921c0fee356c12cac0 /compiler/rustc_incremental/src/persist | |
| parent | c387f012b14a3d64e0d580b7ebe65e5325bcf822 (diff) | |
| download | rust-fbaa24ee35dffb044e4895ad68f01c3f06046275.tar.gz rust-fbaa24ee35dffb044e4895ad68f01c3f06046275.zip | |
Call FileEncoder::finish in rmeta encoding
Diffstat (limited to 'compiler/rustc_incremental/src/persist')
| -rw-r--r-- | compiler/rustc_incremental/src/persist/file_format.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_incremental/src/persist/save.rs | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_incremental/src/persist/file_format.rs b/compiler/rustc_incremental/src/persist/file_format.rs index 25bf83f64a0..b5742b97d02 100644 --- a/compiler/rustc_incremental/src/persist/file_format.rs +++ b/compiler/rustc_incremental/src/persist/file_format.rs @@ -80,8 +80,8 @@ where ); debug!("save: data written to disk successfully"); } - Err(err) => { - sess.emit_err(errors::WriteNew { name, path: path_buf, err }); + Err((path, err)) => { + sess.emit_err(errors::WriteNew { name, path, err }); } } } diff --git a/compiler/rustc_incremental/src/persist/save.rs b/compiler/rustc_incremental/src/persist/save.rs index fa21320be26..d6320d680e7 100644 --- a/compiler/rustc_incremental/src/persist/save.rs +++ b/compiler/rustc_incremental/src/persist/save.rs @@ -50,9 +50,6 @@ pub fn save_dep_graph(tcx: TyCtxt<'_>) { join( move || { sess.time("incr_comp_persist_dep_graph", || { - if let Err(err) = tcx.dep_graph.encode(&tcx.sess.prof) { - sess.emit_err(errors::WriteDepGraph { path: &staging_dep_graph_path, err }); - } if let Err(err) = fs::rename(&staging_dep_graph_path, &dep_graph_path) { sess.emit_err(errors::MoveDepGraph { from: &staging_dep_graph_path, |
