Terminology: prefer "outside inference" to "after typeck" (or worse "during codegen"). #70258
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Example offenders:
rust/src/librustc/ty/normalize_erasing_regions.rs
Lines 18 to 20 in a039217
rust/src/librustc_trait_selection/traits/codegen/mod.rs
Lines 18 to 19 in c6b172f
None of this is particularly true anymore (not that it was great when it used to be true), especially since we started using
miri
for constant evaluation, which uses all the same tools codegen does, and is interleaved/mutually recursive with type-checking.The only real thing to keep in mind is that if you have inference variables, you're responsible for using
InferCtxt
correctly.cc @rust-lang/compiler
The text was updated successfully, but these errors were encountered: