mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
6ecf80e1ad
Because there is no real reason for it to be a separate struct. - It has no methods. - It's easy to confuse with the nearby `BorrowckInferContext` (which does have methods). - The `mut` ref to it in `TypeChecker` makes it seem like any of the fields within might be mutable, but only two (`all_facts` and `constraints`) actually are. - Two of the fields are `pub(crate)` but can be private. This change makes a lot of code more concise and readable. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |