about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-04 07:57:57 +0100
committerGitHub <noreply@github.com>2024-03-04 07:57:57 +0100
commitde95c39a782fd0c51b327c61e7864a5c9f874952 (patch)
tree9ae2248d4f14ea66f2c37138600142d7285a4e0b /compiler/rustc_hir_analysis/src
parentcd9e5b5f43042af441f8baa13f924e4945e6959e (diff)
parent6fb4ac64ec2e8d60af2e3d80df7202acaf6de97b (diff)
downloadrust-de95c39a782fd0c51b327c61e7864a5c9f874952.tar.gz
rust-de95c39a782fd0c51b327c61e7864a5c9f874952.zip
Rollup merge of #121927 - Zoxc:print-no-query, r=estebank
Add a proper `with_no_queries` to printing
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
-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