1
Fork 0

Rollup merge of #121927 - Zoxc:print-no-query, r=estebank

Add a proper `with_no_queries` to printing
This commit is contained in:
Matthias Krüger 2024-03-04 07:57:57 +01:00 committed by GitHub
commit de95c39a78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 20 deletions

View file

@ -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