diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-08 15:34:47 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-11 12:34:48 +0100 |
| commit | 79fa657abc6b8885ceb4023099b4e0026c5ef28f (patch) | |
| tree | 47b5b4bada4def35e5da8f19b4af309f887c8421 /src/libsyntax/fold.rs | |
| parent | 8516ba367d1f51318ce373fe9b60650c82ded1e9 (diff) | |
| download | rust-79fa657abc6b8885ceb4023099b4e0026c5ef28f.tar.gz rust-79fa657abc6b8885ceb4023099b4e0026c5ef28f.zip | |
[breaking-change] don't glob export ast::Decl_ variants
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index dc96e9ecc09..233bcbf4650 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -356,12 +356,12 @@ pub fn noop_fold_arm<T: Folder>(Arm {attrs, pats, guard, body}: Arm, fld: &mut T pub fn noop_fold_decl<T: Folder>(d: P<Decl>, fld: &mut T) -> SmallVector<P<Decl>> { d.and_then(|Spanned {node, span}| match node { - DeclLocal(l) => SmallVector::one(P(Spanned { - node: DeclLocal(fld.fold_local(l)), + DeclKind::Local(l) => SmallVector::one(P(Spanned { + node: DeclKind::Local(fld.fold_local(l)), span: fld.new_span(span) })), - DeclItem(it) => fld.fold_item(it).into_iter().map(|i| P(Spanned { - node: DeclItem(i), + DeclKind::Item(it) => fld.fold_item(it).into_iter().map(|i| P(Spanned { + node: DeclKind::Item(i), span: fld.new_span(span) })).collect() }) |
