diff options
| author | Mohammad Omidvar <m_omidvart@sfu.ca> | 2024-07-15 19:54:47 +0000 | 
|---|---|---|
| committer | Mohammad Omidvar <m_omidvart@sfu.ca> | 2024-07-15 19:54:47 +0000 | 
| commit | 0d508bb0cd681bf15f7861670cd38a1b352d2e40 (patch) | |
| tree | e80c3db6d8d3cb3e74d07f132c0a962ec4ebf7af /compiler/rustc_monomorphize/src/partitioning.rs | |
| parent | d3dd34a1d4a7e25a92a0d65994bb01a5d17c59ee (diff) | |
| download | rust-0d508bb0cd681bf15f7861670cd38a1b352d2e40.tar.gz rust-0d508bb0cd681bf15f7861670cd38a1b352d2e40.zip | |
Introduce and provide a hook for `should_codegen_locally`
Diffstat (limited to 'compiler/rustc_monomorphize/src/partitioning.rs')
| -rw-r--r-- | compiler/rustc_monomorphize/src/partitioning.rs | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs index 9a7c488833a..8c7c5e0074a 100644 --- a/compiler/rustc_monomorphize/src/partitioning.rs +++ b/compiler/rustc_monomorphize/src/partitioning.rs @@ -112,9 +112,9 @@ use rustc_middle::mir::mono::{ CodegenUnit, CodegenUnitNameBuilder, InstantiationMode, Linkage, MonoItem, MonoItemData, Visibility, }; -use rustc_middle::query::Providers; use rustc_middle::ty::print::{characteristic_def_id_of_type, with_no_trimmed_paths}; use rustc_middle::ty::{self, visit::TypeVisitableExt, InstanceKind, TyCtxt}; +use rustc_middle::util::Providers; use rustc_session::config::{DumpMonoStatsFormat, SwitchWithOptPath}; use rustc_session::CodegenUnits; use rustc_span::symbol::Symbol; @@ -1314,4 +1314,6 @@ pub fn provide(providers: &mut Providers) { .find(|cgu| cgu.name() == name) .unwrap_or_else(|| panic!("failed to find cgu with name {name:?}")) }; + + collector::provide(providers); } | 
