Skip to content

Commit

Permalink
Fix BodyId link typo in glossary (#709)
Browse files Browse the repository at this point in the history
* Fix BodyId link typo in glossary

* Fix broken link to rustc_middle's Predicate
  • Loading branch information
Nashenas88 authored May 23, 2020
1 parent 266ab6e commit 59c9fa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/appendix/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Term | Meaning
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.
AST <div id="ast"/> | The abstract syntax tree produced by the `rustc_ast` crate; reflects user syntax very closely.
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).
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).
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).
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)
codegen <div id="codegen"/> | The code to translate MIR into LLVM IR.
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))
Expand Down
2 changes: 1 addition & 1 deletion src/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ allocate, and which are found in this module. Here are a few examples:

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

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

Expand Down

0 comments on commit 59c9fa7

Please sign in to comment.