Update lins
This commit is contained in:
parent
872ba49f48
commit
bfe8e98253
|
|
@ -33,10 +33,12 @@ But it has some other interesting features that distinguish it from the HIR:
|
||||||
|
|
||||||
[HIR]: ./hir.md
|
[HIR]: ./hir.md
|
||||||
|
|
||||||
The THIR lives in [`rustc_mir_build::thir`][thir]. To construct a `thir::Expr`,
|
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
|
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,
|
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
|
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.
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue