| commit | 890083d64fc0ee2ccf298be549827e9c0a975628 | [log] [tgz] |
|---|---|---|
| author | Bryan Henry <bryanhenry@google.com> | Sun Sep 13 10:34:31 2020 -0700 |
| committer | Bryan Henry <bryanhenry@google.com> | Fri Oct 02 11:36:33 2020 -0700 |
| tree | 7dc0fa87ba8f4bdab2820e9157ba3577360ed48b | |
| parent | f2fbac79ab6d2880929a3cdc8e021e53b01ee7e1 [diff] [blame] |
Preserve docs on aliases
diff --git a/syntax/parse.rs b/syntax/parse.rs index 3ac5304..c1c565f 100644 --- a/syntax/parse.rs +++ b/syntax/parse.rs
@@ -396,9 +396,10 @@ let eq_token: Token![=] = input.parse()?; let ty: RustType = input.parse()?; let semi_token: Token![;] = input.parse()?; - attrs::parse_doc(cx, &attrs); + let doc = attrs::parse_doc(cx, &attrs); Ok(TypeAlias { + doc, type_token, ident, eq_token,