diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-04-05 18:08:06 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-04-06 12:42:47 -0400 |
| commit | 82f43611551c2f44710dd949f6418eda8df93ca9 (patch) | |
| tree | 9392dba447b3a861c57c6582f148050206cff845 | |
| parent | 50a40e1c37761acc404d4b95e0448d7a01b6e38b (diff) | |
| download | rust-82f43611551c2f44710dd949f6418eda8df93ca9.tar.gz rust-82f43611551c2f44710dd949f6418eda8df93ca9.zip | |
FIXME for lockfile
| -rw-r--r-- | src/librustc_incremental/persist/load.rs | 1 | ||||
| -rw-r--r-- | src/librustc_incremental/persist/save.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_incremental/persist/load.rs b/src/librustc_incremental/persist/load.rs index 142367e08ee..7cf53b37b1c 100644 --- a/src/librustc_incremental/persist/load.rs +++ b/src/librustc_incremental/persist/load.rs @@ -41,6 +41,7 @@ pub fn load_dep_graph<'tcx>(tcx: &ty::TyCtxt<'tcx>) { let _ignore = tcx.dep_graph.in_ignore(); if let Some(dep_graph) = dep_graph_path(tcx) { + // FIXME(#32754) lock file? load_dep_graph_if_exists(tcx, &dep_graph); dirty_clean::check_dirty_clean_annotations(tcx); } diff --git a/src/librustc_incremental/persist/save.rs b/src/librustc_incremental/persist/save.rs index 692d51aa256..1db129ca700 100644 --- a/src/librustc_incremental/persist/save.rs +++ b/src/librustc_incremental/persist/save.rs @@ -24,6 +24,8 @@ pub fn save_dep_graph<'tcx>(tcx: &ty::TyCtxt<'tcx>) { let _ignore = tcx.dep_graph.in_ignore(); if let Some(dep_graph) = dep_graph_path(tcx) { + // FIXME(#32754) lock file? + // delete the old dep-graph, if any if dep_graph.exists() { match fs::remove_file(&dep_graph) { |
