diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-24 16:37:30 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-26 08:46:10 +1100 |
| commit | 8da1b3315343bb9b77c17e6f8533fbc59af67315 (patch) | |
| tree | dad9dd5a481de333cfd1128ad553b8c324bd9a90 /compiler/rustc_incremental | |
| parent | ca29c272e7ab8535e1870a967a6d990c85227585 (diff) | |
| download | rust-8da1b3315343bb9b77c17e6f8533fbc59af67315.tar.gz rust-8da1b3315343bb9b77c17e6f8533fbc59af67315.zip | |
Move a `use` to a more sensible spot.
I.e. in the source file where it's used.
Diffstat (limited to 'compiler/rustc_incremental')
| -rw-r--r-- | compiler/rustc_incremental/src/lib.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_incremental/src/persist/save.rs | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_incremental/src/lib.rs b/compiler/rustc_incremental/src/lib.rs index e1c5e6e8d36..dde138973b9 100644 --- a/compiler/rustc_incremental/src/lib.rs +++ b/compiler/rustc_incremental/src/lib.rs @@ -18,7 +18,6 @@ mod assert_dep_graph; mod errors; mod persist; -use assert_dep_graph::assert_dep_graph; pub use persist::copy_cgu_workproduct_to_incr_comp_cache_dir; pub use persist::finalize_session_directory; pub use persist::in_incr_comp_dir; diff --git a/compiler/rustc_incremental/src/persist/save.rs b/compiler/rustc_incremental/src/persist/save.rs index 210da751d95..fa21320be26 100644 --- a/compiler/rustc_incremental/src/persist/save.rs +++ b/compiler/rustc_incremental/src/persist/save.rs @@ -1,3 +1,4 @@ +use crate::assert_dep_graph::assert_dep_graph; use crate::errors; use rustc_data_structures::fx::FxIndexMap; use rustc_data_structures::sync::join; @@ -39,7 +40,7 @@ pub fn save_dep_graph(tcx: TyCtxt<'_>) { let dep_graph_path = dep_graph_path(sess); let staging_dep_graph_path = staging_dep_graph_path(sess); - sess.time("assert_dep_graph", || crate::assert_dep_graph(tcx)); + sess.time("assert_dep_graph", || assert_dep_graph(tcx)); sess.time("check_dirty_clean", || dirty_clean::check_dirty_clean_annotations(tcx)); if sess.opts.unstable_opts.incremental_info { |
