This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 67df7cb
committed
Simplify
`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.rustc_mir_dataflow::abs_domain.1 parent 33c245b commit 67df7cb
File tree
2 files changed
+11
-37
lines changed- compiler/rustc_mir_dataflow/src/move_paths
2 files changed
+11
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 14 | + | |
22 | 15 | | |
23 | 16 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 17 | + | |
44 | 18 | | |
| 19 | + | |
45 | 20 | | |
46 | | - | |
47 | | - | |
| 21 | + | |
48 | 22 | | |
49 | 23 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
53 | 27 | | |
54 | 28 | | |
55 | 29 | | |
56 | 30 | | |
57 | 31 | | |
58 | 32 | | |
59 | 33 | | |
60 | | - | |
| 34 | + | |
61 | 35 | | |
62 | 36 | | |
63 | 37 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
0 commit comments