about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-02 15:56:03 -0700
committerGitHub <noreply@github.com>2020-07-02 15:56:03 -0700
commit7bd2f97cb61d4578ac55d54bfdfc7c4ade752374 (patch)
tree327e15fe3a91f01c5b4cf23b2a31366b384e97bd
parent5702b27fcd7dae477f84abaf158672c44fdf0c12 (diff)
parent3c139ae929118d984e30d4b093c36618fcddf2f9 (diff)
downloadrust-7bd2f97cb61d4578ac55d54bfdfc7c4ade752374.tar.gz
rust-7bd2f97cb61d4578ac55d54bfdfc7c4ade752374.zip
Rollup merge of #73975 - pierwill:patch-3, r=jonas-schievink
Document rustc_ast::ast::Pat
-rw-r--r--src/librustc_ast/ast.rs3
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,