about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-14 18:10:30 +0200
committerGitHub <noreply@github.com>2023-06-14 18:10:30 +0200
commit502ac47f8a1fa95e5b1c7dc2fb7f2a39c87ca1b1 (patch)
treee8986c4f613176c30cf09d6e6cd18f95d31ccd2a /compiler/rustc_codegen_llvm/src/errors.rs
parent2759a7d2f18c965c50a2348590865ed46ce48506 (diff)
parentaf4040a5c1846fb9019c8ba92ce12e0c6764ec02 (diff)
downloadrust-502ac47f8a1fa95e5b1c7dc2fb7f2a39c87ca1b1.tar.gz
rust-502ac47f8a1fa95e5b1c7dc2fb7f2a39c87ca1b1.zip
Rollup merge of #112600 - celinval:stable-mir-rvalue, r=oli-obk
Introduce a `Stable` trait to translate MIR to SMIR

This PR introduces a trait `Stable` which defines a type `T` and a `stable()` method to convert the current type to its stable MIR version.

This change is just an implementation detail, and I wanted to get some feedback to whether it would be cleaner than having the `rustc_<type>_to_<type>()` methods for every type we translate to SMIR.

r? `@oli-obk`
r? `@spastorino`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions