about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/collect/item_bounds.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2024-03-03 04:37:33 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2024-03-03 21:12:04 +0100
commit6fb4ac64ec2e8d60af2e3d80df7202acaf6de97b (patch)
tree270c9e2900c60d3a29f2e300771cb01717e3e13b /compiler/rustc_hir_analysis/src/collect/item_bounds.rs
parent6db96de66c2c0ea3f4f2f348ed1a83c2c507687d (diff)
downloadrust-6fb4ac64ec2e8d60af2e3d80df7202acaf6de97b.tar.gz
rust-6fb4ac64ec2e8d60af2e3d80df7202acaf6de97b.zip
Add a proper `with_no_queries` to printing
Diffstat (limited to 'compiler/rustc_hir_analysis/src/collect/item_bounds.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/collect/item_bounds.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect/item_bounds.rs b/compiler/rustc_hir_analysis/src/collect/item_bounds.rs
index 39ca1bba065..78c390d0924 100644
--- a/compiler/rustc_hir_analysis/src/collect/item_bounds.rs
+++ b/compiler/rustc_hir_analysis/src/collect/item_bounds.rs
@@ -64,7 +64,7 @@ fn opaque_type_bounds<'tcx>(
     item_ty: Ty<'tcx>,
     span: Span,
 ) -> &'tcx [(ty::Clause<'tcx>, Span)] {
-    ty::print::with_no_queries!({
+    ty::print::with_reduced_queries!({
         let icx = ItemCtxt::new(tcx, opaque_def_id);
         let mut bounds = icx.astconv().compute_bounds(item_ty, ast_bounds, PredicateFilter::All);
         // Opaque types are implicitly sized unless a `?Sized` bound is found