| commit | b4a05c3621964bb2d5d8e9bf9ccb651aebf4f7ff | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Wed Dec 30 15:37:01 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Wed Dec 30 15:46:47 2020 -0800 |
| tree | 99cbffdc2979e86988366253903bb9cac36f75cf | |
| parent | 0bdabfdc98d73df7d26c94efcc3e61b62e111fb7 [diff] [blame] |
Preserve doc attributes on struct fields
diff --git a/syntax/impls.rs b/syntax/impls.rs index c7e1a2c..624a64d 100644 --- a/syntax/impls.rs +++ b/syntax/impls.rs
@@ -297,11 +297,13 @@ impl PartialEq for Var { fn eq(&self, other: &Var) -> bool { let Var { + doc: _, visibility: _, ident, ty, } = self; let Var { + doc: _, visibility: _, ident: ident2, ty: ty2, @@ -313,6 +315,7 @@ impl Hash for Var { fn hash<H: Hasher>(&self, state: &mut H) { let Var { + doc: _, visibility: _, ident, ty,