diff options
| author | Mohammad Omidvar <m_omidvart@sfu.ca> | 2024-07-15 19:58:44 +0000 |
|---|---|---|
| committer | Mohammad Omidvar <m_omidvart@sfu.ca> | 2024-07-15 19:58:44 +0000 |
| commit | 14430e66be02266ca59bdddd38d88a27f2e02917 (patch) | |
| tree | a8ec6567533a1ec8f93fd479575b3334d2cb91fb /compiler/rustc_monomorphize/src/lib.rs | |
| parent | 0d508bb0cd681bf15f7861670cd38a1b352d2e40 (diff) | |
| download | rust-14430e66be02266ca59bdddd38d88a27f2e02917.tar.gz rust-14430e66be02266ca59bdddd38d88a27f2e02917.zip | |
Use the hook on tcx instead of the local function
Diffstat (limited to 'compiler/rustc_monomorphize/src/lib.rs')
| -rw-r--r-- | compiler/rustc_monomorphize/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_monomorphize/src/lib.rs b/compiler/rustc_monomorphize/src/lib.rs index d169f086066..e5a63a98ff4 100644 --- a/compiler/rustc_monomorphize/src/lib.rs +++ b/compiler/rustc_monomorphize/src/lib.rs @@ -22,8 +22,6 @@ mod partitioning; mod polymorphize; mod util; -use collector::should_codegen_locally; - rustc_fluent_macro::fluent_messages! { "../messages.ftl" } fn custom_coerce_unsize_info<'tcx>( @@ -73,7 +71,7 @@ pub fn is_call_from_compiler_builtins_to_upstream_monomorphization<'tcx>( !def_id.is_local() && tcx.is_compiler_builtins(LOCAL_CRATE) && !is_llvm_intrinsic(tcx, def_id) - && !should_codegen_locally(tcx, instance) + && !tcx.should_codegen_locally(instance) } pub fn provide(providers: &mut Providers) { |
