about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-03-27 00:47:14 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-03-27 01:19:07 +1100
commit6419848e66e1a8dd73204711d4e589e4b7f341ef (patch)
treefc2cc090f54e1e069a108ba4f3b4bb15db680899 /src/libsyntax
parent85ff90c86c98b9fad41f792a8fabb145db320a50 (diff)
downloadrust-6419848e66e1a8dd73204711d4e589e4b7f341ef.tar.gz
rust-6419848e66e1a8dd73204711d4e589e4b7f341ef.zip
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.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/fold.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs
index 0afde5be9a0..291502ff229 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()
     }