diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-10-31 14:23:38 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-09 17:55:39 +0000 |
| commit | 8e9bbc899c7a1913ff04d9af516efee900aeffd1 (patch) | |
| tree | ffae6ca1f59575e32ac1f07bef1ba77966952899 /compiler/rustc_incremental/src/lib.rs | |
| parent | bec24a25cd61c5d252701b9119e4fe887b274937 (diff) | |
| download | rust-8e9bbc899c7a1913ff04d9af516efee900aeffd1.tar.gz rust-8e9bbc899c7a1913ff04d9af516efee900aeffd1.zip | |
Move some code from Compiler::enter to GlobalCtxt::finish
Diffstat (limited to 'compiler/rustc_incremental/src/lib.rs')
| -rw-r--r-- | compiler/rustc_incremental/src/lib.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/compiler/rustc_incremental/src/lib.rs b/compiler/rustc_incremental/src/lib.rs index e8735cba9bd..6dab6468870 100644 --- a/compiler/rustc_incremental/src/lib.rs +++ b/compiler/rustc_incremental/src/lib.rs @@ -16,8 +16,15 @@ mod persist; pub use persist::{ LoadResult, copy_cgu_workproduct_to_incr_comp_cache_dir, finalize_session_directory, - in_incr_comp_dir, in_incr_comp_dir_sess, load_query_result_cache, save_dep_graph, - save_work_product_index, setup_dep_graph, + in_incr_comp_dir, in_incr_comp_dir_sess, load_query_result_cache, save_work_product_index, + setup_dep_graph, }; +use rustc_middle::util::Providers; + +#[allow(missing_docs)] +pub fn provide(providers: &mut Providers) { + providers.hooks.save_dep_graph = + |tcx| tcx.sess.time("serialize_dep_graph", || persist::save_dep_graph(tcx.tcx)); +} rustc_fluent_macro::fluent_messages! { "../messages.ftl" } |
