Skip to content

Commit

Permalink
lazy type aliases also have explicit implied bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Feb 29, 2024
1 parent 478a77a commit 2268f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/traits/implied-bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ handled... well... implicitly.

## explicit implied bounds

The explicit implied bounds are computed in [`fn inferred_outlives_of`]. Only ADTs have
explicit implied bounds which are computed via a fixpoint algorithm in the
[`fn inferred_outlives_crate`] query.
The explicit implied bounds are computed in [`fn inferred_outlives_of`]. Only ADTs and
lazy type aliases have explicit implied bounds which are computed via a fixpoint algorithm
in the [`fn inferred_outlives_crate`] query.

We use [`fn insert_required_predicates_to_be_wf`] on all fields of all ADTs in the crate.
This function computes the outlives bounds for each component of the field using a
Expand Down

0 comments on commit 2268f30

Please sign in to comment.