Skip to content

Commit 502ac47

Browse files
authored
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`
2 parents 2759a7d + af4040a commit 502ac47

File tree

1 file changed

+203
-194
lines changed
  • compiler/rustc_smir/src/rustc_smir

1 file changed

+203
-194
lines changed

0 commit comments

Comments
 (0)