about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/implied_bounds.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-05-15 06:24:45 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-05-15 08:49:13 +0200
commitfff20a703db364d8b91c14cef4779f5e632df191 (patch)
tree5dc2f951987aeb8b4cc6c43a6ea6cb8df8ad97a6 /compiler/rustc_ty_utils/src/implied_bounds.rs
parenta14d6961f940255727f06689cad99d755e498c24 (diff)
downloadrust-fff20a703db364d8b91c14cef4779f5e632df191.tar.gz
rust-fff20a703db364d8b91c14cef4779f5e632df191.zip
Move expansion of query macros in rustc_middle to rustc_middle::query
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
-rw-r--r--compiler/rustc_ty_utils/src/implied_bounds.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs
index 5ca5d14337c..081be065864 100644
--- a/compiler/rustc_ty_utils/src/implied_bounds.rs
+++ b/compiler/rustc_ty_utils/src/implied_bounds.rs
@@ -1,8 +1,9 @@
 use rustc_hir::{def::DefKind, def_id::DefId};
+use rustc_middle::query::Providers;
 use rustc_middle::ty::{self, Ty, TyCtxt};
 
-pub fn provide(providers: &mut ty::query::Providers) {
-    *providers = ty::query::Providers { assumed_wf_types, ..*providers };
+pub fn provide(providers: &mut Providers) {
+    *providers = Providers { assumed_wf_types, ..*providers };
 }
 
 fn assumed_wf_types(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::List<Ty<'_>> {