Skip to content

Commit f34dd04

Browse files
authored
Added description of word Scrutinee to the glossary (rust-lang#921)
1 parent db9070f commit f34dd04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/appendix/glossary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ query <div id="query"/> | Perhaps some sub-computation during
6464
recovery <div id="recovery"/> | Recovery refers to handling invalid syntax during parsing (e.g. a missing comma) and continuing to parse the AST. This avoid showing spurious errors to the user (e.g. showing 'missing field' errors when the struct definition contains errors).
6565
region <div id="region"/> | Another term for "lifetime" often used in the literature and in the borrow checker.
6666
rib <div id="rib"/> | A data structure in the name resolver that keeps track of a single scope for names. ([see more](../name-resolution.html))
67+
scrutinee | A scrutinee is the expression that is matched on in `match` expressions and similar pattern matching constructs. For example, in `match x { A => 1, B => 2 }`, the expression `x` is the scrutinee.
6768
sess <div id="sess"/> | The compiler session, which stores global data used throughout compilation
6869
side tables <div id="side-tables"/> | 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.
6970
sigil <div id="sigil"/> | Like a keyword but composed entirely of non-alphanumeric tokens. For example, `&` is a sigil for references.

0 commit comments

Comments
 (0)