mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
![]() `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. |
||
---|---|---|
.. | ||
framework | ||
impls | ||
move_paths | ||
debuginfo.rs | ||
drop_flag_effects.rs | ||
elaborate_drops.rs | ||
errors.rs | ||
lib.rs | ||
points.rs | ||
rustc_peek.rs | ||
un_derefer.rs | ||
value_analysis.rs |