Skip to content

Commit bfe8e98

Browse files
LeSeulArtichautJoshua Nelson
authored and
Joshua Nelson
committed
Update lins
1 parent 872ba49 commit bfe8e98

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/thir.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ But it has some other interesting features that distinguish it from the HIR:
3333

3434
[HIR]: ./hir.md
3535

36-
The THIR lives in [`rustc_mir_build::thir`][thir]. To construct a `thir::Expr`,
37-
you can use the `build_thir` function, passing in the memory arena where the THIR
36+
The THIR lives in [`rustc_mir_build::thir`][thir-docs]. To construct a [`thir::Expr`],
37+
you can use the [`build_thir`] function, passing in the memory arena where the THIR
3838
will be allocated. Dropping this arena will result in the THIR being destroyed,
3939
which is useful to keep peak memory in check. Having a THIR representation of
4040
all bodies of a crate in memory at the same time would be very heavy.
4141

42-
[thir]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/index.html
42+
[thir-docs]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/index.html
43+
[`thir::Expr`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/struct.Expr.html
44+
[`build_thir`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/fn.build_thir.html

0 commit comments

Comments
 (0)