We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef902a2 commit bc02a54Copy full SHA for bc02a54
src/librustc_incremental/persist/util.rs
@@ -8,6 +8,7 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
+use rustc::middle::cstore::LOCAL_CRATE;
12
use rustc::ty::TyCtxt;
13
14
use std::fs;
@@ -28,7 +29,12 @@ pub fn dep_graph_path(tcx: TyCtxt) -> Option<PathBuf> {
28
29
}
30
31
- Some(incr_dir.join("dep_graph.rbml"))
32
+ let crate_name = tcx.crate_name(LOCAL_CRATE);
33
+ let crate_disambiguator = tcx.crate_disambiguator(LOCAL_CRATE);
34
+ let file_name = format!("dep-graph-{}-{}.bin",
35
+ crate_name,
36
+ crate_disambiguator);
37
+ Some(incr_dir.join(file_name))
38
})
39
40
0 commit comments