FIXME for lockfile
This commit is contained in:
parent
50a40e1c37
commit
82f4361155
@ -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);
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user