diff options
| author | pierwill <19642016+pierwill@users.noreply.github.com> | 2020-07-02 15:11:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-02 15:11:03 -0700 |
| commit | 3c139ae929118d984e30d4b093c36618fcddf2f9 (patch) | |
| tree | 1d4d2e7983bae092c920db4bd49629bdb09fe6b3 | |
| parent | 3503f565e1fb7296983757d2716346f48a4a262b (diff) | |
| download | rust-3c139ae929118d984e30d4b093c36618fcddf2f9.tar.gz rust-3c139ae929118d984e30d4b093c36618fcddf2f9.zip | |
Document rustc_ast::ast::Pat
| -rw-r--r-- | src/librustc_ast/ast.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_ast/ast.rs b/src/librustc_ast/ast.rs index 99fbb1ee3ea..6543117774a 100644 --- a/src/librustc_ast/ast.rs +++ b/src/librustc_ast/ast.rs @@ -511,6 +511,9 @@ pub struct Block { pub span: Span, } +/// A match pattern. +/// +/// Patterns appear in match statements and some other contexts, such as `let` and `if let`. #[derive(Clone, RustcEncodable, RustcDecodable, Debug)] pub struct Pat { pub id: NodeId, |
