about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorpierwill <pierwill@users.noreply.github.com>2021-11-09 10:58:11 -0600
committerpierwill <pierwill@users.noreply.github.com>2021-11-09 10:58:11 -0600
commit6f13bdbd7332ae586502ff141fa33c2b96dbc262 (patch)
treeaa9dcb8de02b6fbea6e367efd7daa33b512e1e81 /compiler
parenteee8b9c7bafade55981d155dae71657f1cc55a22 (diff)
downloadrust-6f13bdbd7332ae586502ff141fa33c2b96dbc262.tar.gz
rust-6f13bdbd7332ae586502ff141fa33c2b96dbc262.zip
Remove `rustc_incremental::persist::fs::dep_graph_path_from`
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_incremental/src/persist/fs.rs3
-rw-r--r--compiler/rustc_incremental/src/persist/load.rs2
2 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_incremental/src/persist/fs.rs b/compiler/rustc_incremental/src/persist/fs.rs
index 38cbf5314ef..c0137fc7a5a 100644
--- a/compiler/rustc_incremental/src/persist/fs.rs
+++ b/compiler/rustc_incremental/src/persist/fs.rs
@@ -139,9 +139,6 @@ pub fn dep_graph_path(sess: &Session) -> PathBuf {
 pub fn staging_dep_graph_path(sess: &Session) -> PathBuf {
     in_incr_comp_dir_sess(sess, STAGING_DEP_GRAPH_FILENAME)
 }
-pub fn dep_graph_path_from(incr_comp_session_dir: &Path) -> PathBuf {
-    in_incr_comp_dir(incr_comp_session_dir, DEP_GRAPH_FILENAME)
-}
 
 pub fn work_products_path(sess: &Session) -> PathBuf {
     in_incr_comp_dir_sess(sess, WORK_PRODUCTS_FILENAME)
diff --git a/compiler/rustc_incremental/src/persist/load.rs b/compiler/rustc_incremental/src/persist/load.rs
index 4d38556e5d2..5f5e83774da 100644
--- a/compiler/rustc_incremental/src/persist/load.rs
+++ b/compiler/rustc_incremental/src/persist/load.rs
@@ -105,7 +105,7 @@ pub fn load_dep_graph(sess: &Session) -> DepGraphFuture {
 
     // Calling `sess.incr_comp_session_dir()` will panic if `sess.opts.incremental.is_none()`.
     // Fortunately, we just checked that this isn't the case.
-    let path = dep_graph_path_from(&sess.incr_comp_session_dir());
+    let path = dep_graph_path(&sess);
     let report_incremental_info = sess.opts.debugging_opts.incremental_info;
     let expected_hash = sess.opts.dep_tracking_hash(false);