about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2018-12-12 02:08:40 +0000
committerWho? Me?! <mark-i-m@users.noreply.github.com>2018-12-11 21:58:29 -0600
commit136e62f1f757ddeccaf60b82b0e9d4ab8067aa1e (patch)
tree3940e9c97baf3de14d0bf0e8e3efe531b9a38851 /src/doc/rustc-dev-guide
parent5ea235e9665377e4db47a432065239e670ea4bac (diff)
Fix link to rustc_mir::hair::cx::expr
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/mir/construction.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/mir/construction.md b/src/doc/rustc-dev-guide/src/mir/construction.md
index 03e220cb459..f0e3cf76ad4 100644
--- a/src/doc/rustc-dev-guide/src/mir/construction.md
+++ b/src/doc/rustc-dev-guide/src/mir/construction.md
@@ -24,9 +24,8 @@ being a `hair::ExprKind::Neg(hair::Expr)` it is a `hair::ExprKind::Neg(hir::Expr
 This shallowness enables the `HAIR` to represent all datatypes that [HIR] has, but
 without having to create an in-memory copy of the entire [HIR].
 [MIR] lowering will first convert the topmost expression from
-[HIR] to [HAIR] (in
-[https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/hair/cx/expr/index.html])
-and then process the [HAIR] expressions recursively.
+[HIR] to [HAIR] (in [rustc_mir::hair::cx::expr]) and then process
+the [HAIR] expressions recursively.
 
 The lowering creates local variables for every argument as specified in the signature.
 Next it creates local variables for every binding specified (e.g. `(a, b): (i32, String)`)
@@ -147,4 +146,6 @@ case of `enum`s.
 [MIR]: ./index.html
 [HIR]: ../hir.html
 [HAIR]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/hair/index.html
+
+[rustc_mir::hair::cx::expr]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/hair/cx/expr/index.html
 [`mir_built`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/fn.mir_built.html