diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-10 14:02:28 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-11-04 17:36:25 +1100 |
| commit | 6ecf80e1ad38198ce49f0d908283319345a80ed2 (patch) | |
| tree | e9ece96e921b19ffe55bc912f3205bba563674c5 /compiler/rustc_codegen_cranelift/scripts/rustc-clif.rs | |
| parent | f86c76a782b0cff10b19b5baa3b509a2fee4b5f7 (diff) | |
| download | rust-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_codegen_cranelift/scripts/rustc-clif.rs')
0 files changed, 0 insertions, 0 deletions
