rust/compiler/rustc_mir_dataflow/src/move_paths
Nicholas Nethercote 67df7cbf31 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.
2024-12-11 10:45:47 +11:00
..
abs_domain.rs Simplify rustc_mir_dataflow::abs_domain. 2024-12-11 10:45:47 +11:00
builder.rs reduce false positives of tail-expr-drop-order from consumed values 2024-11-20 20:53:11 +08:00
mod.rs Simplify rustc_mir_dataflow::abs_domain. 2024-12-11 10:45:47 +11:00