diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-12-12 08:07:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-12 08:07:01 +0100 |
| commit | d71576da0e8835d830c5c17d76087bd33c43fd5b (patch) | |
| tree | 38a515d5c764c8452afd7eb68002146b136834b7 /compiler/rustc_interface/src/errors.rs | |
| parent | 296e0ba26677ff440f7ffb99b2cf9972c9024091 (diff) | |
| parent | 67df7cbf31c89e0290c9c3a0deb814eb8068ab69 (diff) | |
| download | rust-d71576da0e8835d830c5c17d76087bd33c43fd5b.tar.gz rust-d71576da0e8835d830c5c17d76087bd33c43fd5b.zip | |
Rollup merge of #134152 - nnethercote:simplify-rustc_mir_dataflow-abs_domain, r=compiler-errors
Simplify `rustc_mir_dataflow::abs_domain`. `rustc_mir_dataflow` has a typedef `AbstractElem` that is equal to `ProjectionElem<AbstractOperand, AbstractType>`. `AbstractOperand` and `AbstractType` are both unit types. There is also has a trait `Lift` to convert a `PlaceElem` to an `AbstractElem`. But `rustc_mir_middle` already has a typedef `ProjectionKind` that is equal to `ProjectionElem<(), ()>`, which is equivalent to `AbstractElem`. So this commit reuses `ProjectionKind` in `rustc_mir_dataflow`, removes `AbstractElem`, and simplifies the `Lift` trait. r? ``@pnkfelix``
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
