Skip to content

Commit 4f57627

Browse files
committed
syntax: Cleanup attr module. Closes #1545
1 parent 4f4a468 commit 4f57627

File tree

9 files changed

+237
-193
lines changed

9 files changed

+237
-193
lines changed

src/librustsyntax/ast_util.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ fn respan<T: copy>(sp: span, t: T) -> spanned<T> {
55
ret {node: t, span: sp};
66
}
77

8+
fn dummy_spanned<T: copy>(t: T) -> spanned<T> {
9+
ret respan(dummy_sp(), t);
10+
}
11+
812
/* assuming that we're not in macro expansion */
913
fn mk_sp(lo: uint, hi: uint) -> span {
1014
ret {lo: lo, hi: hi, expn_info: none};

0 commit comments

Comments
 (0)