Skip to content

Commit 8da1b33

Browse files
committed
Move a use to a more sensible spot.
I.e. in the source file where it's used.
1 parent ca29c27 commit 8da1b33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_incremental/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ mod assert_dep_graph;
1818
mod errors;
1919
mod persist;
2020

21-
use assert_dep_graph::assert_dep_graph;
2221
pub use persist::copy_cgu_workproduct_to_incr_comp_cache_dir;
2322
pub use persist::finalize_session_directory;
2423
pub use persist::in_incr_comp_dir;

compiler/rustc_incremental/src/persist/save.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::assert_dep_graph::assert_dep_graph;
12
use crate::errors;
23
use rustc_data_structures::fx::FxIndexMap;
34
use rustc_data_structures::sync::join;
@@ -39,7 +40,7 @@ pub fn save_dep_graph(tcx: TyCtxt<'_>) {
3940
let dep_graph_path = dep_graph_path(sess);
4041
let staging_dep_graph_path = staging_dep_graph_path(sess);
4142

42-
sess.time("assert_dep_graph", || crate::assert_dep_graph(tcx));
43+
sess.time("assert_dep_graph", || assert_dep_graph(tcx));
4344
sess.time("check_dirty_clean", || dirty_clean::check_dirty_clean_annotations(tcx));
4445

4546
if sess.opts.unstable_opts.incremental_info {

0 commit comments

Comments
 (0)