about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorLéo Lanteri Thauvin <leseulartichaut@gmail.com>2021-03-09 11:44:02 +0100
committerJoshua Nelson <joshua@yottadb.com>2021-03-10 12:00:27 -0500
commit19c59cd26f6e8d1d6dbc535b4d025704c12f8f10 (patch)
treeaec0334bd1aa41b58bdb3b01a50b40cf15a59cf3 /src/doc/rustc-dev-guide
parenta937cf6355c9fd0520d0dd382a755ad50ff24617 (diff)
downloadrust-19c59cd26f6e8d1d6dbc535b4d025704c12f8f10.tar.gz
rust-19c59cd26f6e8d1d6dbc535b4d025704c12f8f10.zip
Update lins
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/thir.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/thir.md b/src/doc/rustc-dev-guide/src/thir.md
index efbc5284916..b023eb2e2a1 100644
--- a/src/doc/rustc-dev-guide/src/thir.md
+++ b/src/doc/rustc-dev-guide/src/thir.md
@@ -33,10 +33,12 @@ But it has some other interesting features that distinguish it from the HIR:
 
 [HIR]: ./hir.md
 
-The THIR lives in [`rustc_mir_build::thir`][thir]. To construct a `thir::Expr`,
-you can use the `build_thir` function, passing in the memory arena where the THIR
+The THIR lives in [`rustc_mir_build::thir`][thir-docs]. To construct a [`thir::Expr`],
+you can use the [`build_thir`] function, passing in the memory arena where the THIR
 will be allocated. Dropping this arena will result in the THIR being destroyed,
 which is useful to keep peak memory in check. Having a THIR representation of
 all bodies of a crate in memory at the same time would be very heavy.
 
-[thir]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/index.html
+[thir-docs]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/index.html
+[`thir::Expr`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/struct.Expr.html
+[`build_thir`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/thir/fn.build_thir.html