Skip to content

Commit de4ca80

Browse files
authored
Add "ctxt" and TyCtxt to the glossary (#937)
1 parent 30c298d commit de4ca80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/appendix/glossary.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ completeness <div id="completeness"/> | A technical term in type theory, it
1313
control-flow graph <div id="cfg"/> | A representation of the control-flow of a program; see [the background chapter for more](./background.html#cfg)
1414
CTFE <div id="ctfe"/> | Short for Compile-Time Function Evaluation, this is the ability of the compiler to evaluate `const fn`s at compile time. This is part of the compiler's constant evaluation system. ([see more](../const-eval.html))
1515
cx <div id="cx"/> | We tend to use "cx" as an abbreviation for context. See also `tcx`, `infcx`, etc.
16+
ctxt <div id="ctxt"/> | We also use "ctxt" as an abbreviation for context, e.g. [`TyCtxt`](TyCtxt). See also [cx](#cx) or [tcx](#tcx).
1617
DAG <div id="dag"/> | A directed acyclic graph is used during compilation to keep track of dependencies between queries. ([see more](../queries/incremental-compilation.html))
1718
data-flow analysis <div id="data-flow"/> | A static analysis that figures out what properties are true at each point in the control-flow of a program; see [the background chapter for more](./background.html#dataflow).
1819
DeBruijn Index <div id="debruijn"> | A technique for describing which binder a variable is bound by using only integers. It has the benefit that it is invariant under variable renaming. ([see more](./background.md#what-is-a-debruijn-index))
@@ -73,7 +74,8 @@ span <div id="span"/> | A location in the user's source code
7374
substs <div id="substs"/> | The substitutions for a given generic type or item (e.g. the `i32`, `u32` in `HashMap<i32, u32>`).
7475
Tag <div id="tag"/> | 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).
7576
tcx <div id="tcx"/> | The "typing context", main data structure of the compiler. ([see more](../ty.html))
76-
'tcx <div id="lifetime-tcx"/> | The lifetime of the allocation arena. ([see more](../ty.html))
77+
`'tcx` <div id="lifetime-tcx"/> | The lifetime of the allocation arena. ([see more](../ty.html))
78+
TyCtxt <div id="tyctxt"> | The data structure often referred to as [tcx](#tcx) in code
7779
token <div id="token"/> | The smallest unit of parsing. Tokens are produced after lexing ([see more](../the-parser.html)).
7880
[TLS] <div id="tls"/> | Thread-Local Storage. Variables may be defined so that each thread has its own copy (rather than all threads sharing the variable). This has some interactions with LLVM. Not all platforms support TLS.
7981
trait reference <div id="trait-ref"/> | The name of a trait along with a suitable set of input type/lifetimes. ([see more](../traits/goals-and-clauses.html#trait-ref))

0 commit comments

Comments
 (0)