@@ -32,13 +32,11 @@ efficiently.
32
32
33
33
## Move path indices
34
34
35
- Although there is a [ ` MovePath ` ] data structure, they are never
36
- referenced directly. Instead, all the code passes around * indices* of
37
- type
38
- [ ` MovePathIndex ` ] ( https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/indexes/struct.MovePathIndex.html ) . If
39
- you need to get information about a move path, you use this index with
40
- the [ ` move_paths ` field of the ` MoveData ` ] [ move_paths ] . For example,
41
- to convert a [ ` MovePathIndex ` ] ` mpi ` into a MIR [ ` Place ` ] , you might
35
+ Although there is a [ ` MovePath ` ] data structure, they are never referenced
36
+ directly. Instead, all the code passes around * indices* of type
37
+ [ ` MovePathIndex ` ] . If you need to get information about a move path, you use
38
+ this index with the [ ` move_paths ` field of the ` MoveData ` ] [ move_paths ] . For
39
+ example, to convert a [ ` MovePathIndex ` ] ` mpi ` into a MIR [ ` Place ` ] , you might
42
40
access the [ ` MovePath::place ` ] field like so:
43
41
44
42
``` rust,ignore
@@ -47,7 +45,7 @@ move_data.move_paths[mpi].place
47
45
48
46
[ move_paths ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#structfield.move_paths
49
47
[ `MovePath::place` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePath.html#structfield.place
50
- [ `MovePathIndex` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/indexes/ struct.MovePathIndex.html
48
+ [ `MovePathIndex` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePathIndex.html
51
49
52
50
## Building move paths
53
51
0 commit comments