Call FileEncoder::finish in rmeta encoding
This commit is contained in:
parent
c387f012b1
commit
fbaa24ee35
14 changed files with 82 additions and 41 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue