Document rustc_ast::ast::Pat

This commit is contained in:
pierwill 2020-07-02 15:11:03 -07:00 committed by GitHub
parent 3503f565e1
commit 3c139ae929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -511,6 +511,9 @@ pub struct Block {
pub span: Span, 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)] #[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
pub struct Pat { pub struct Pat {
pub id: NodeId, pub id: NodeId,