diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-07-27 15:23:01 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2014-07-29 15:51:03 -0700 |
| commit | a46463d17920b99411337f20fc0e7edc72230c0b (patch) | |
| tree | ba54570e4101c3e3bec525c98aa1236801861d0b /src/libsyntax | |
| parent | 4d472ff1be571cc20d89ddc97d22c9903b6c3aa8 (diff) | |
| download | rust-a46463d17920b99411337f20fc0e7edc72230c0b.tar.gz rust-a46463d17920b99411337f20fc0e7edc72230c0b.zip | |
syntax: promote a comment on PatEnum into a docstring
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index f05d17569f6..4a59ada441f 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -334,8 +334,10 @@ pub enum Pat_ { /// records this pattern's NodeId in an auxiliary /// set (of "PatIdents that refer to nullary enums") PatIdent(BindingMode, SpannedIdent, Option<Gc<Pat>>), - PatEnum(Path, Option<Vec<Gc<Pat>>>), /* "none" means a * pattern where - * we don't bind the fields to names */ + + /// "None" means a * pattern where we don't bind the fields to names. + PatEnum(Path, Option<Vec<Gc<Pat>>>), + PatStruct(Path, Vec<FieldPat>, bool), PatTup(Vec<Gc<Pat>>), PatBox(Gc<Pat>), |
