rust/compiler/rustc_middle
Dylan DPC 71a1ac2c9a
Rollup merge of #110297 - kylematsuda:earlybinder_tcx_subst, r=BoxyUwU
Make `(try_)subst_and_normalize_erasing_regions` take `EarlyBinder`

Changes `subst_and_normalize_erasing_regions` and `try_subst_and_normalize_erasing_regions` to take  `EarlyBinder<T>` instead of `T`.

(related to #105779)

This was suggested by `@BoxyUwU` in https://github.com/rust-lang/rust/pull/107753#discussion_r1105828139. After changing `type_of` to return `EarlyBinder`, there were several places where the binder was immediately skipped to call `tcx.subst_and_normalize_erasing_regions`, only for the binder to be reconstructed inside of that method.

r? `@BoxyUwU`
2023-05-08 11:39:20 +05:30
..
src Rollup merge of #110297 - kylematsuda:earlybinder_tcx_subst, r=BoxyUwU 2023-05-08 11:39:20 +05:30
Cargo.toml Remove QueryEngine trait 2023-04-26 07:46:13 +02:00
messages.ftl Avoid ICEing miri on layout query cycles 2023-05-02 16:14:20 +00:00
README.md

For more information about how rustc works, see the rustc dev guide.