mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
a55d30f53c
Make `Bounds.clauses` private Construct it through `Bounds::default()`, then consume the clauses via the method `Bounds::clauses()`. This helps with effects desugaring where `clauses()` is not only the clauses within the `clauses` field.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.