diff options
| author | John Clements <clements@racket-lang.org> | 2013-06-07 10:41:38 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-06 13:35:08 -0700 |
| commit | 3965725d51508e185f03bda0ce883f56c1d980e5 (patch) | |
| tree | 145cd3bf78c18c798f7cf1ddd3255ba99d42f827 /src/libsyntax/ext | |
| parent | d1c01734f3a34958333fefb2fe91cea5e753ddd7 (diff) | |
comments
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 196e8644cd3..a75238d269b 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -553,6 +553,8 @@ fn expand_non_macro_stmt (exts: SyntaxEnv, let expanded_pat = fld.fold_pat(pat); // find the pat_idents in the pattern: // oh dear heaven... this is going to include the enum names, as well.... + // ... but that should be okay, as long as the new names are gensyms + // for the old ones. let idents = @mut ~[]; let name_finder = new_name_finder(idents); name_finder.visit_pat(expanded_pat,()); @@ -1467,6 +1469,7 @@ mod test { #[test] fn automatic_renaming () { + // need some other way to test these... let teststrs = ~[// b & c should get new names throughout, in the expr too: @"fn a() -> int { let b = 13; let c = b; b+c }", |
