about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-04 22:16:31 +0100
committerGitHub <noreply@github.com>2024-03-04 22:16:31 +0100
commite7bb22421959e2eda73361c26fe90f7fa5131bae (patch)
treedbc3be9004d66b687df2bddef7b1c617ca8da516 /compiler/rustc_codegen_llvm/src
parent8886c310e4a82c0d8657a47c1aa63674429e5921 (diff)
parent1eedca8bdf0020b673957bfbb2c787583f474128 (diff)
downloadrust-e7bb22421959e2eda73361c26fe90f7fa5131bae.tar.gz
rust-e7bb22421959e2eda73361c26fe90f7fa5131bae.zip
Rollup merge of #121703 - compiler-errors:new, r=lcnr
Add a way to add constructors for `rustc_type_ir` types

Introduces a module called `rustc_type_ir`, in which we can place traits which are named `Ty`/`Region`/`Const`/etc. which expose constructors for the `rustc_type_ir` types. This means we can construct things `Interner::Ty` with `Ty::new_x(...)`, which is needed to uplift the new trait solver into an interner-agnostic crate.

These traits are placed into a *separate* module because they're only intended to be used in interner-agnostic code, and they should mirror the constructors that are provided by the inherent constructor methods in `rustc_middle`.

Putting this up for vibe-check mostly. I haven't copied over any of the type constructors, except for one to create bound types for use in the canonicalizer.

r? lcnr
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions