Skip to content

Commit 59c9fa7

Browse files
authored
Fix BodyId link typo in glossary (#709)
* Fix BodyId link typo in glossary * Fix broken link to rustc_middle's Predicate
1 parent 266ab6e commit 59c9fa7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/appendix/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Term | Meaning
55
arena/arena allocation <div id="arena"/> | An _arena_ is a large memory buffer from which other memory allocations are made. This style of allocation is called _arena allocation_. See [this chapter](../memory.md) for more info.
66
AST <div id="ast"/> | The abstract syntax tree produced by the `rustc_ast` crate; reflects user syntax very closely.
77
binder <div id="binder"/> | A "binder" is a place where a variable or type is declared; for example, the `<T>` is a binder for the generic type parameter `T` in `fn foo<T>(..)`, and \|`a`\|` ...` is a binder for the parameter `a`. See [the background chapter for more](./background.html#free-vs-bound).
8-
BodyId <div id="body-id"/ | An identifier that refers to a specific body (definition of a function or constant) in the crate. See [the HIR chapter for more](../hir.html#identifiers-in-the-hir).
8+
BodyId <div id="body-id"/> | An identifier that refers to a specific body (definition of a function or constant) in the crate. See [the HIR chapter for more](../hir.html#identifiers-in-the-hir).
99
bound variable <div id="bound-var"/> | A "bound variable" is one that is declared within an expression/term. For example, the variable `a` is bound within the closure expression \|`a`\|` a * 2`. See [the background chapter for more](./background.html#free-vs-bound)
1010
codegen <div id="codegen"/> | The code to translate MIR into LLVM IR.
1111
codegen unit <div id="codegen-unit"/> | When we produce LLVM IR, we group the Rust code into a number of codegen units (sometimes abbreviated as CGUs). Each of these units is processed by LLVM independently from one another, enabling parallelism. They are also the unit of incremental re-use. ([see more](../backend/codegen.md))

src/memory.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ allocate, and which are found in this module. Here are a few examples:
5050

5151
[subst]: ./generic_arguments.html#subst
5252
[`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TraitRef.html
53-
[`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.Predicate.html
53+
[`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
5454

5555
[`ty::TyS`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyS.html
5656

0 commit comments

Comments
 (0)