Skip to content

Commit

Permalink
Rollup merge of rust-lang#73975 - pierwill:patch-3, r=jonas-schievink
Browse files Browse the repository at this point in the history
Document rustc_ast::ast::Pat
  • Loading branch information
Manishearth committed Jul 2, 2020
2 parents 5702b27 + 3c139ae commit 7bd2f97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_ast/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7bd2f97

Please sign in to comment.