File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
3838will be allocated. Dropping this arena will result in the THIR being destroyed,
3939which is useful to keep peak memory in check. Having a THIR representation of
4040all 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
You can’t perform that action at this time.
0 commit comments