From 62fee04ae9f82c1d1fe03c68735ee2b9f69f9b8e Mon Sep 17 00:00:00 2001 From: John Clements Date: Fri, 7 Jun 2013 15:01:28 -0700 Subject: [PATCH] test case work --- src/libsyntax/ext/expand.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 4ffaf5df7b7c..ca82fd09a6b2 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;}"))) - }*/ }