rust/compiler/rustc_const_eval/src
bors 6290ae92b2 Auto merge of #108487 - cjgillot:no-typeck-mir, r=oli-obk
Avoid invoking typeck from borrowck

This PR attempts to reduce direct dependencies between typeck and MIR-related queries. The goal is to have all the information transit either through THIR or through dedicated queries that avoid depending on the whole `TypeckResults`.

In a first commit, we store the type information that MIR building requires into THIR. This avoids edges between mir_built and typeck.

In the second and third commit, we wrap informations around closures (upvars, kind origin and user-provided signature) to avoid borrowck depending on typeck information.

There should be a single remaining borrowck -> typeck edge in the good path, due to inline consts.
2023-02-27 21:48:10 +00:00
..
const_eval Rename many interner functions. 2023-02-24 07:32:24 +11:00
interpret Auto merge of #108487 - cjgillot:no-typeck-mir, r=oli-obk 2023-02-27 21:48:10 +00:00
transform Auto merge of #108175 - cjgillot:validate-storage, r=tmiasko 2023-02-27 11:41:41 +00:00
util Unify validity checks into a single query 2023-02-23 18:42:36 +00:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
lib.rs Unify validity checks into a single query 2023-02-23 18:42:36 +00:00