about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2019-04-16 15:29:25 -0500
committerWho? Me?! <mark-i-m@users.noreply.github.com>2019-04-16 15:37:11 -0500
commite300ba3a17cfb0665d60e6ba919e9a8da7bcbb55 (patch)
treeb218cb2cc357527fbbea55bbba8837ece3ebb63b /src/doc/rustc-dev-guide
parent9f71565d8f7bd2b2327ed033cd882ba1639dbf28 (diff)
downloadrust-e300ba3a17cfb0665d60e6ba919e9a8da7bcbb55.tar.gz
rust-e300ba3a17cfb0665d60e6ba919e9a8da7bcbb55.zip
fix MovePathIndex link
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md b/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md
index 8fd7b3f196f..4d4db4116d4 100644
--- a/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md
+++ b/src/doc/rustc-dev-guide/src/borrow_check/moves_and_initialization/move_paths.md
@@ -32,13 +32,11 @@ efficiently.
 
 ## Move path indices
 
-Although there is a [`MovePath`] data structure, they are never
-referenced directly.  Instead, all the code passes around *indices* of
-type
-[`MovePathIndex`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/indexes/struct.MovePathIndex.html). If
-you need to get information about a move path, you use this index with
-the [`move_paths` field of the `MoveData`][move_paths]. For example,
-to convert a [`MovePathIndex`] `mpi` into a MIR [`Place`], you might
+Although there is a [`MovePath`] data structure, they are never referenced
+directly.  Instead, all the code passes around *indices* of type
+[`MovePathIndex`]. If you need to get information about a move path, you use
+this index with the [`move_paths` field of the `MoveData`][move_paths]. For
+example, to convert a [`MovePathIndex`] `mpi` into a MIR [`Place`], you might
 access the [`MovePath::place`] field like so:
 
 ```rust,ignore
@@ -47,7 +45,7 @@ move_data.move_paths[mpi].place
 
 [move_paths]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#structfield.move_paths
 [`MovePath::place`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePath.html#structfield.place
-[`MovePathIndex`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/indexes/struct.MovePathIndex.html
+[`MovePathIndex`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePathIndex.html
 
 ## Building move paths