reduce query calls in pretty printing when finding bounds of
associated types
This commit is contained in:
parent
942db6782f
commit
a634246b66
1 changed files with 43 additions and 41 deletions
|
@ -30,6 +30,7 @@ fn associated_type_bounds<'tcx>(
|
|||
span: Span,
|
||||
filter: PredicateFilter,
|
||||
) -> &'tcx [(ty::Clause<'tcx>, Span)] {
|
||||
ty::print::with_reduced_queries!({
|
||||
let item_ty = Ty::new_projection_from_args(
|
||||
tcx,
|
||||
assoc_item_def_id.to_def_id(),
|
||||
|
@ -77,6 +78,7 @@ fn associated_type_bounds<'tcx>(
|
|||
assert_only_contains_predicates_from(filter, all_bounds, item_ty);
|
||||
|
||||
all_bounds
|
||||
})
|
||||
}
|
||||
|
||||
/// The code below is quite involved, so let me explain.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue