Skip to content

Commit 95f1acf

Browse files
camelidjyn514
authored andcommitted
Add link to Span
1 parent 9be3faf commit 95f1acf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/appendix/glossary.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Term | Meaning
7171
<span id="side-tables">side tables</span> &nbsp; | Because the AST and HIR are immutable once created, we often carry extra information about them in the form of hashtables, indexed by the id of a particular node.
7272
<span id="sigil">sigil</span> &nbsp; | Like a keyword but composed entirely of non-alphanumeric tokens. For example, `&` is a sigil for references.
7373
<span id="soundness">soundness</span> &nbsp; | A technical term in type theory. Roughly, if a type system is sound, then a program that type-checks is type-safe. That is, one can never (in safe rust) force a value into a variable of the wrong type. (see "completeness").
74-
<span id="span">span</span> &nbsp; | A location in the user's source code, used for error reporting primarily. These are like a file-name/line-number/column tuple on steroids: they carry a start/end point, and also track macro expansions and compiler desugaring. All while being packed into a few bytes (really, it's an index into a table). See the Span datatype for more.
74+
<span id="span">span</span> &nbsp; | A location in the user's source code, used for error reporting primarily. These are like a file-name/line-number/column tuple on steroids: they carry a start/end point, and also track macro expansions and compiler desugaring. All while being packed into a few bytes (really, it's an index into a table). See the [`Span`] datatype for more.
7575
<span id="substs">substs</span> &nbsp; | The substitutions for a given generic type or item (e.g. the `i32`, `u32` in `HashMap<i32, u32>`).
7676
<span id="sysroot">sysroot</span> &nbsp; | The directory for build artifacts that are loaded by the compiler at runtime. ([see more](../building/bootstrapping.html#what-is-a-sysroot))
7777
<span id="tag">tag</span> &nbsp; | The "tag" of an enum/generator encodes the [discriminant](#discriminant) of the active variant/state. Tags can either be "direct" (simply storing the discriminant in a field) or use a ["niche"](#niche).
@@ -93,5 +93,6 @@ Term | Meaning
9393

9494
[LLVM]: https://llvm.org/
9595
[lto]: https://llvm.org/docs/LinkTimeOptimization.html
96+
[`Span`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.Span.html
9697
[thinlto]: https://clang.llvm.org/docs/ThinLTO.html
9798
[TLS]: https://llvm.org/docs/LangRef.html#thread-local-storage-models

0 commit comments

Comments
 (0)