File tree 1 file changed +5
-3
lines changed
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:
33
33
34
34
[ HIR ] : ./hir.md
35
35
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
38
38
will be allocated. Dropping this arena will result in the THIR being destroyed,
39
39
which is useful to keep peak memory in check. Having a THIR representation of
40
40
all bodies of a crate in memory at the same time would be very heavy.
41
41
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