summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-06-07 15:01:28 -0700
committerJohn Clements <clements@racket-lang.org>2013-09-06 13:35:09 -0700
commit62fee04ae9f82c1d1fe03c68735ee2b9f69f9b8e (patch)
treef8c6421fb764b7fc335a7bae517c33a4c9cace5a /src/libsyntax/ext
parent1f8e8564308917efe94663d3577bfe35948b624a (diff)
downloadrust-62fee04ae9f82c1d1fe03c68735ee2b9f69f9b8e.tar.gz
rust-62fee04ae9f82c1d1fe03c68735ee2b9f69f9b8e.zip
test case work
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/expand.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 4ffaf5df7b7..ca82fd09a6b 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -1480,6 +1480,8 @@ mod test {
         let teststrs =
             ~[// b & c should get new names throughout, in the expr too:
                 @"fn a() -> int { let b = 13; let c = b; b+c }",
+                // both x's should be renamed (how is this causing a bug?)
+                @"fn main () {let x : int = 13;x;}",
                 // the use of b before the + should be renamed, the other one not:
                 @"macro_rules! f (($x:ident) => ($x + b)) fn a() -> int { let b = 13; f!(b)}",
                 // the b before the plus should not be renamed (requires marks)
@@ -1508,8 +1510,4 @@ mod test {
         assert_eq!(idents, @mut strs_to_idents(~["a","c","b","d"]));
     }
 
-/*    #[test]
-    fn debugging(){
-        io::println(fmt!("%?",expand_and_resolve(@~"fn main () {    let x : int = 13;}")))
-    }*/
 }