Skip to content

Commit b95f349

Browse files
committed
fix MovePathIndex link
1 parent 7503057 commit b95f349

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/borrow_check/moves_and_initialization/move_paths.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ efficiently.
3232

3333
## Move path indices
3434

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
4240
access the [`MovePath::place`] field like so:
4341

4442
```rust,ignore
@@ -47,7 +45,7 @@ move_data.move_paths[mpi].place
4745

4846
[move_paths]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#structfield.move_paths
4947
[`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
5149

5250
## Building move paths
5351

0 commit comments

Comments
 (0)