Skip to content

Commit 1ae4bea

Browse files
authored
Update memory.md
1 parent bf87480 commit 1ae4bea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/memory.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ the arenas, anyhow).
8686
### A Note On Lifetimes
8787

8888
The Rust compiler is a fairly large program containing lots of big data
89-
structures (e.g. the Abstract Syntax Tree (`AST`), [High-Level Intermediate
89+
structures (e.g. the [Abstract Syntax Tree (`AST`)][ast], [High-Level Intermediate
9090
Representation (`HIR`)][hir], and the type system) and as such, arenas and
9191
references are heavily relied upon to minimize unnecessary memory use. This
9292
manifests itself in the way people can plug into the compiler (i.e. the
@@ -98,5 +98,6 @@ duplication while also preventing a lot of the ergonomic issues due to many
9898
pervasive lifetimes. The [`rustc_middle::ty::tls`][tls] module is used to access these
9999
thread-locals, although you should rarely need to touch it.
100100

101+
[ast]: ./ast-validation.md
101102
[hir]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/index.html
102103
[tls]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/tls/index.html

0 commit comments

Comments
 (0)