about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/lib.rs
diff options
context:
space:
mode:
authorMohammad Omidvar <m_omidvart@sfu.ca>2024-07-15 19:54:47 +0000
committerMohammad Omidvar <m_omidvart@sfu.ca>2024-07-15 19:54:47 +0000
commit0d508bb0cd681bf15f7861670cd38a1b352d2e40 (patch)
treee80c3db6d8d3cb3e74d07f132c0a962ec4ebf7af /compiler/rustc_monomorphize/src/lib.rs
parentd3dd34a1d4a7e25a92a0d65994bb01a5d17c59ee (diff)
downloadrust-0d508bb0cd681bf15f7861670cd38a1b352d2e40.tar.gz
rust-0d508bb0cd681bf15f7861670cd38a1b352d2e40.zip
Introduce and provide a hook for `should_codegen_locally`
Diffstat (limited to 'compiler/rustc_monomorphize/src/lib.rs')
-rw-r--r--compiler/rustc_monomorphize/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/lib.rs b/compiler/rustc_monomorphize/src/lib.rs
index aa3b4cd5b67..d169f086066 100644
--- a/compiler/rustc_monomorphize/src/lib.rs
+++ b/compiler/rustc_monomorphize/src/lib.rs
@@ -5,12 +5,13 @@
 
 use rustc_hir::lang_items::LangItem;
 use rustc_middle::bug;
-use rustc_middle::query::{Providers, TyCtxtAt};
+use rustc_middle::query::TyCtxtAt;
 use rustc_middle::traits;
 use rustc_middle::ty::adjustment::CustomCoerceUnsized;
 use rustc_middle::ty::Instance;
 use rustc_middle::ty::TyCtxt;
 use rustc_middle::ty::{self, Ty};
+use rustc_middle::util::Providers;
 use rustc_span::def_id::DefId;
 use rustc_span::def_id::LOCAL_CRATE;
 use rustc_span::ErrorGuaranteed;