Skip to content

Commit ed95356

Browse files
nikomatsakismark-i-m
authored andcommitted
add point to the glossary and link a use of it
1 parent a8de9a1 commit ed95356

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/appendix/glossary.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ newtype | a "newtype" is a wrapper around some other type (e.g.
5050
NLL | [non-lexical lifetimes](../borrow_check/region_inference.html), an extension to Rust's borrowing system to make it be based on the control-flow graph.
5151
node-id or NodeId | an index identifying a particular node in the AST or HIR; gradually being phased out and replaced with `HirId`.
5252
obligation | something that must be proven by the trait system ([see more](../traits/resolution.html))
53+
point | used in the NLL analysis to refer to some particular location in the MIR; typically used to refer to a node in the control-flow graph.
5354
projection | a general term for a "relative path", e.g. `x.f` is a "field projection", and `T::Item` is an ["associated type projection"](../traits/goals-and-clauses.html#trait-ref)
5455
promoted constants | constants extracted from a function and lifted to static scope; see [this section](../mir/index.html#promoted) for more details.
5556
provider | the function that executes a query ([see more](../query.html))

src/borrow_check/region_inference/constraint_propagation.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ in the section on outlives constraints.
5151
## Liveness constraints
5252

5353
A **liveness constraint** arises when some variable whose type
54-
includes a region R is live at some point P. This simply means that
54+
includes a region R is live at some [point] P. This simply means that
5555
the value of R must include the point P. Liveness constraints are
5656
computed by the MIR type checker.
5757

58+
[point]: ../../appendix/glossary.html
59+
5860
A liveness constraint `R live at E` is satisfied if `E` is a member of
5961
`Values(R)`. So to "apply" such a constraint to `Values`, we just have
6062
to compute `Values(R) = Values(R) union {E}`.

0 commit comments

Comments
 (0)