Skip to content

Commit 6419848

Browse files
committed
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.
1 parent 85ff90c commit 6419848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/fold.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub trait Folder {
134134
node.move_iter().map(|node| {
135135
@Spanned {
136136
node: node,
137-
span: d.span,
137+
span: self.new_span(d.span),
138138
}
139139
}).collect()
140140
}

0 commit comments

Comments
 (0)