Skip to content

Commit 168b9b7

Browse files
committed
---
yaml --- r: 79719 b: refs/heads/try c: 9de40df h: refs/heads/master i: 79717: 8eee6d5 79715: 4f18f14 79711: a3f9ced v: v3
1 parent 43c169d commit 168b9b7

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: ba9fa89bfb4aae53db93e9ecac31807af96356fc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 54ae2800ffb30513f89ce13d27ac3c8d095d98ac
5-
refs/heads/try: 98a6cbdba320b106690c01a354f91019020a82d0
5+
refs/heads/try: 9de40dfc870b355a737465d5f75f7efba8292728
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libsyntax/ext/expand.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,16 +1456,14 @@ mod test {
14561456
pprust::print_mod(s, &crate.module, crate.attrs);
14571457
}
14581458
1459-
fn expand_and_resolve_and_pretty_print (crate_str : @str) -> ~str {
1460-
let resolver = new_ident_resolver();
1461-
let resolver_fold = fun_to_ident_folder(resolver);
1462-
let (crate_ast,ps) = string_to_crate_and_sess(crate_str);
1459+
//fn expand_and_resolve_and_pretty_print (crate_str : @str) -> ~str {
1460+
//let (crate_ast,ps) = string_to_crate_and_sess(crate_str);
14631461
// the cfg argument actually does matter, here...
1464-
let expanded_ast = expand_crate(ps,~[],crate_ast);
1462+
//let expanded_ast = expand_crate(ps,~[],crate_ast);
14651463
// std::io::println(fmt!("expanded: %?\n",expanded_ast));
1466-
let resolved_ast = resolver_fold.fold_crate(expanded_ast);
1467-
pprust::to_str(&resolved_ast,fake_print_crate,get_ident_interner())
1468-
}
1464+
//let resolved_ast = mtwt_resolve_crate(expanded_ast);
1465+
//pprust::to_str(&resolved_ast,fake_print_crate,get_ident_interner())
1466+
//}
14691467

14701468
#[test]
14711469
fn automatic_renaming () {
@@ -1476,16 +1474,18 @@ mod test {
14761474
@"macro_rules! f (($x:ident) => ($x + b)) fn a() -> int { let b = 13; f!(b)}",
14771475
// the b before the plus should not be renamed (requires marks)
14781476
@"macro_rules! f (($x:ident) => ({let b=9; ($x + b)})) fn a() -> int { f!(b)}",
1477+
// FIXME #6994: the next string exposes the bug referred to in issue 6994, so I'm
1478+
// commenting it out.
14791479
// the z flows into and out of two macros (g & f) along one path, and one (just g) along the
14801480
// other, so the result of the whole thing should be "let z_123 = 3; z_123"
1481-
@"macro_rules! g (($x:ident) => ({macro_rules! f(($y:ident)=>({let $y=3;$x}));f!($x)}))
1482-
fn a(){g!(z)}"
1481+
//@"macro_rules! g (($x:ident) => ({macro_rules! f(($y:ident)=>({let $y=3;$x}));f!($x)}))
1482+
// fn a(){g!(z)}"
14831483
// create a really evil test case where a $x appears inside a binding of $x but *shouldnt*
14841484
// bind because it was inserted by a different macro....
14851485
];
14861486
for s in teststrs.iter() {
14871487
// we need regexps to test these!
1488-
std::io::println(expand_and_resolve_and_pretty_print(*s));
1488+
//std::io::println(expand_and_resolve_and_pretty_print(*s));
14891489
}
14901490
}
14911491

branches/try/src/libsyntax/fold.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,8 @@ pub fn noop_fold_item_underscore(i: &item_, fld: @ast_fold) -> item_ {
325325
)
326326
}
327327
item_mac(ref m) => {
328-
// FIXME #2888: we might actually want to do something here.
329-
// ... okay, we're doing something. It would probably be nicer
330-
// to add something to the ast_fold trait, but I'll defer
328+
// It would probably be nicer
329+
// to expose this in the ast_fold trait, but I'll defer
331330
// that work.
332331
item_mac(fold_mac_(m,fld))
333332
}

0 commit comments

Comments
 (0)