| commit | 4486f7261e43afc155016e8fec12467858ef2e12 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Wed Dec 30 00:01:26 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Wed Dec 30 00:01:26 2020 -0800 |
| tree | 860d5af0ebdb27c0e89dc4787d56e905e1ac20e6 | |
| parent | d61437042ddbae64133ecf6311cfb842de37e7d7 [diff] [blame] |
Preserve doc comments on enum variants
diff --git a/syntax/mod.rs b/syntax/mod.rs index 009afee..0fc7a9d 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -167,6 +167,7 @@ } pub struct Variant { + pub doc: Doc, pub name: Pair, pub discriminant: Discriminant, pub expr: Option<Expr>,