mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-13 23:58:34 +00:00

The existing code check for `where_bounds.is_empty()` twice when it can be combined into one. Moreover, the refactored code reads better and feels straightforward.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.