diff options
| author | Matt Ickstadt <mattico8@gmail.com> | 2017-08-26 17:09:31 -0500 |
|---|---|---|
| committer | Matt Ickstadt <mattico8@gmail.com> | 2017-09-01 12:46:37 -0500 |
| commit | f86615299190b77fd5890ee3951ed85e36d829df (patch) | |
| tree | 5a0f7f160bb0ad56786454d03222fee0fad8768c /src/libsyntax/fold.rs | |
| parent | ed532c0d933aaae45e6804efc5936bea078bbaad (diff) | |
| download | rust-f86615299190b77fd5890ee3951ed85e36d829df.tar.gz rust-f86615299190b77fd5890ee3951ed85e36d829df.zip | |
Implement RFC 1925
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index d9f453a93ad..03c47b71d02 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -344,12 +344,14 @@ pub fn fold_thin_attrs<T: Folder>(attrs: ThinVec<Attribute>, fld: &mut T) -> Thi fold_attrs(attrs.into(), fld).into() } -pub fn noop_fold_arm<T: Folder>(Arm {attrs, pats, guard, body}: Arm, fld: &mut T) -> Arm { +pub fn noop_fold_arm<T: Folder>(Arm {attrs, pats, guard, body, beginning_vert}: Arm, + fld: &mut T) -> Arm { Arm { attrs: fold_attrs(attrs, fld), pats: pats.move_map(|x| fld.fold_pat(x)), guard: guard.map(|x| fld.fold_expr(x)), body: fld.fold_expr(body), + beginning_vert, } } |
