diff options
| author | Benjamin Saunders <ben.e.saunders@gmail.com> | 2017-01-03 19:13:01 -0800 |
|---|---|---|
| committer | Benjamin Saunders <ben.e.saunders@gmail.com> | 2017-01-11 21:33:17 -0800 |
| commit | 7972c1905beb9d1169475f42231b25d0bc9e83e6 (patch) | |
| tree | cc72ed09a2553aab5e384c305ff850844c607d8d /src/libsyntax/fold.rs | |
| parent | 8f62c2920077eb5cb81323142fc5dbe6ae8813c0 (diff) | |
| download | rust-7972c1905beb9d1169475f42231b25d0bc9e83e6.tar.gz rust-7972c1905beb9d1169475f42231b25d0bc9e83e6.zip | |
syntax: struct field attributes and cfg
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 9797e0003fc..13869c0d545 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -830,6 +830,7 @@ pub fn noop_fold_field<T: Folder>(f: Field, folder: &mut T) -> Field { expr: folder.fold_expr(f.expr), span: folder.new_span(f.span), is_shorthand: f.is_shorthand, + attrs: fold_thin_attrs(f.attrs, folder), } } @@ -1089,6 +1090,7 @@ pub fn noop_fold_pat<T: Folder>(p: P<Pat>, folder: &mut T) -> P<Pat> { ident: folder.fold_ident(f.node.ident), pat: folder.fold_pat(f.node.pat), is_shorthand: f.node.is_shorthand, + attrs: fold_attrs(f.node.attrs.into(), folder).into() }} }); PatKind::Struct(pth, fs, etc) |
