diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-03-27 00:47:14 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-03-27 01:19:07 +1100 |
| commit | 6419848e66e1a8dd73204711d4e589e4b7f341ef (patch) | |
| tree | fc2cc090f54e1e069a108ba4f3b4bb15db680899 /src/libsyntax | |
| parent | 85ff90c86c98b9fad41f792a8fabb145db320a50 (diff) | |
| download | rust-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.rs | 2 |
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() } |
