You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#157667 - jdonszelmann:rename-typingmode-again, r=lcnr
Rename typing modes to better describe real usage
r? @lcnr
cc: @BoxyUwU
Lcnr and I brainstormed these names before RustWeek, but I never got to actually changing it. As for rationale:
- `Coherence`: stays the same
- `Analysis`: given that basically all of type checking is analyzing code, this didn't feel so accurate. It's now called `Typeck` to signify that it's mainly used during `hir_typeck`.
- `Borrowck`: this is the one that actually started the discussion about renaming. Borrowck is used in quite a few places now that are *not* Borrowck, simply to avoid making inference progress on opaque types. It's renamed to `PostTypeckUntilBorrowck`, since its used after `Typeck`.
- `PostBorrowckAnalysis` is now simply called `PostBorrowck`, since it's supposed to be used after borrowck finishes.
- `PostAnalysis` stays the same, it's the typing mode used after all type analysis finished
- There's now also a new `Codegen` typing mode. It's unchanged too.
To preempt some questions, I mainly did this rename through normal editor renames. I then also did a search with various regexes over ever occurence of `//.*Analysis` and `//.*Borrowck` and `PostBorrowck`, and some more similar regexes to make sure as many comments as possible are updated, if not all.
Notably, this PR does not update RustAnlayzer to use the same names yet.
Warning: this PR may be somewhat conflicty :/
0 commit comments