Skip to content

Commit 62fee04

Browse files
committed
test case work
1 parent 1f8e856 commit 62fee04

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,8 @@ mod test {
14801480
let teststrs =
14811481
~[// b & c should get new names throughout, in the expr too:
14821482
@"fn a() -> int { let b = 13; let c = b; b+c }",
1483+
// both x's should be renamed (how is this causing a bug?)
1484+
@"fn main () {let x : int = 13;x;}",
14831485
// the use of b before the + should be renamed, the other one not:
14841486
@"macro_rules! f (($x:ident) => ($x + b)) fn a() -> int { let b = 13; f!(b)}",
14851487
// the b before the plus should not be renamed (requires marks)
@@ -1508,8 +1510,4 @@ mod test {
15081510
assert_eq!(idents, @mut strs_to_idents(~["a","c","b","d"]));
15091511
}
15101512

1511-
/* #[test]
1512-
fn debugging(){
1513-
io::println(fmt!("%?",expand_and_resolve(@~"fn main () { let x : int = 13;}")))
1514-
}*/
15151513
}

0 commit comments

Comments
 (0)