Skip to content

Commit 7bd2f97

Browse files
authored
Rollup merge of #73975 - pierwill:patch-3, r=jonas-schievink
Document rustc_ast::ast::Pat
2 parents 5702b27 + 3c139ae commit 7bd2f97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_ast/ast.rs

+3
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ pub struct Block {
511511
pub span: Span,
512512
}
513513

514+
/// A match pattern.
515+
///
516+
/// Patterns appear in match statements and some other contexts, such as `let` and `if let`.
514517
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
515518
pub struct Pat {
516519
pub id: NodeId,

0 commit comments

Comments
 (0)