about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-10-10 14:02:28 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-11-04 17:36:25 +1100
commit6ecf80e1ad38198ce49f0d908283319345a80ed2 (patch)
treee9ece96e921b19ffe55bc912f3205bba563674c5 /compiler/rustc_monomorphize/src/errors.rs
parentf86c76a782b0cff10b19b5baa3b509a2fee4b5f7 (diff)
downloadrust-6ecf80e1ad38198ce49f0d908283319345a80ed2.tar.gz
rust-6ecf80e1ad38198ce49f0d908283319345a80ed2.zip
Merge `BorrowCheckContext` into `TypeChecker`.
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.
Diffstat (limited to 'compiler/rustc_monomorphize/src/errors.rs')
0 files changed, 0 insertions, 0 deletions