From 6419848e66e1a8dd73204711d4e589e4b7f341ef Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Thu, 27 Mar 2014 00:47:14 +1100 Subject: [PATCH] syntax: add a missing span rewrite in fold. This was leaving Decls without the new spans; this is a minor change, since literally nothing reads in the code base reads the span of a Decl itself, always just its contents. --- src/libsyntax/fold.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 0afde5be9a07..291502ff229b 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -134,7 +134,7 @@ pub trait Folder { node.move_iter().map(|node| { @Spanned { node: node, - span: d.span, + span: self.new_span(d.span), } }).collect() }