mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +00:00
`delegation.rs` has three builders: `GenericsBuilder`, `PredicatesBuilder`, and `GenericArgsBuilder`. The first two builders have just two optional parameters, and the third one has zero. Each builder is used within a single function. The code is over-engineered. This commit removes the builders, replacing each with with a single `build_*` function. This makes the code shorter and simpler.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.