about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
author1c3t3a <45260993+1c3t3a@users.noreply.github.com>2020-10-12 18:57:18 +0200
committerGitHub <noreply@github.com>2020-10-13 01:57:18 +0900
commit2de5d90041cd30a43312d31834f919a2dbf7f3c2 (patch)
treedaeca6e8afd76adefbc82e2c96d8251d0c76ecd4 /src/doc/rustc-dev-guide
parent9e9b8e3bc74cfa864a01ee54ba4b8aa5a2fd6637 (diff)
downloadrust-2de5d90041cd30a43312d31834f919a2dbf7f3c2.tar.gz
rust-2de5d90041cd30a43312d31834f919a2dbf7f3c2.zip
Added description of word Scrutinee to the glossary (#921)
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/appendix/glossary.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/appendix/glossary.md b/src/doc/rustc-dev-guide/src/appendix/glossary.md
index 007edce8d54..842613d257c 100644
--- a/src/doc/rustc-dev-guide/src/appendix/glossary.md
+++ b/src/doc/rustc-dev-guide/src/appendix/glossary.md
@@ -64,6 +64,7 @@ query <div id="query"/>                  |  Perhaps some sub-computation during
 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).
 region <div id="region"/>                |  Another term for "lifetime" often used in the literature and in the borrow checker.
 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))
+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.
 sess <div id="sess"/>                    |  The compiler session, which stores global data used throughout compilation
 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.
 sigil <div id="sigil"/>                  |  Like a keyword but composed entirely of non-alphanumeric tokens. For example, `&` is a sigil for references.