Skip to content

Commit 81b0c84

Browse files
dlrobertsonmark-i-m
authored andcommitted
Fix link to rustc_mir::hair::cx::expr
1 parent 2dfa301 commit 81b0c84

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/mir/construction.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ being a `hair::ExprKind::Neg(hair::Expr)` it is a `hair::ExprKind::Neg(hir::Expr
2424
This shallowness enables the `HAIR` to represent all datatypes that [HIR] has, but
2525
without having to create an in-memory copy of the entire [HIR].
2626
[MIR] lowering will first convert the topmost expression from
27-
[HIR] to [HAIR] (in
28-
[https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/hair/cx/expr/index.html])
29-
and then process the [HAIR] expressions recursively.
27+
[HIR] to [HAIR] (in [rustc_mir::hair::cx::expr]) and then process
28+
the [HAIR] expressions recursively.
3029

3130
The lowering creates local variables for every argument as specified in the signature.
3231
Next it creates local variables for every binding specified (e.g. `(a, b): (i32, String)`)
@@ -147,4 +146,6 @@ case of `enum`s.
147146
[MIR]: ./index.html
148147
[HIR]: ../hir.html
149148
[HAIR]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/hair/index.html
149+
150+
[rustc_mir::hair::cx::expr]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/hair/cx/expr/index.html
150151
[`mir_built`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/transform/fn.mir_built.html

0 commit comments

Comments
 (0)