Skip to content

Commit 91ed77e

Browse files
committed
---
yaml --- r: 79511 b: refs/heads/snap-stage3 c: eabeba3 h: refs/heads/master i: 79509: 271997b 79507: c258e32 79503: c051218 v: v3
1 parent fed88f7 commit 91ed77e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1ecc1e51c08f38b6ee42dae9a0f8bd6dc1f1b86f
4+
refs/heads/snap-stage3: eabeba3ef309b09a1acd8adfbca13203a0766d75
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/ext/expand.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,13 +1794,13 @@ mod test {
17941794
// create a really evil test case where a $x appears inside a binding of $x
17951795
// but *shouldnt* bind because it was inserted by a different macro....
17961796
];
1797-
for s in tests.iter() {
1798-
run_renaming_test(s);
1797+
for (idx,s) in tests.iter().enumerate() {
1798+
run_renaming_test(s,idx);
17991799
}
18001800
}
18011801

18021802
// run one of the renaming tests
1803-
fn run_renaming_test(t : &renaming_test) {
1803+
fn run_renaming_test(t : &renaming_test, test_idx: uint) {
18041804
let invalid_name = token::special_idents::invalid.name;
18051805
let (teststr, bound_connections, bound_ident_check) = match *t {
18061806
(ref str,ref conns, bic) => (str.to_managed(), conns.clone(), bic)
@@ -1845,8 +1845,15 @@ mod test {
18451845
&& (mtwt_resolve(varref.segments[0].identifier) == binding_name);
18461846
// temp debugging:
18471847
if (fail) {
1848-
std::io::println("uh oh, matches but shouldn't:");
1848+
println!("failure on test {}",test_idx);
1849+
println!("text of test case: \"{}\"", teststr);
1850+
println!("");
1851+
println!("uh oh, matches but shouldn't:");
18491852
std::io::println(fmt!("varref: %?",varref));
1853+
// good lord, you can't make a path with 0 segments, can you?
1854+
println!("varref's first segment's uint: {}, and string: \"{}\"",
1855+
varref.segments[0].identifier.name,
1856+
ident_to_str(&varref.segments[0].identifier));
18501857
std::io::println(fmt!("binding: %?", bindings[binding_idx]));
18511858
ast_util::display_sctable(get_sctable());
18521859
}

0 commit comments

Comments
 (0)