Skip to content

Commit 021fb40

Browse files
committed
---
yaml --- r: 79380 b: refs/heads/try c: dbb0d5d h: refs/heads/master v: v3
1 parent 2fb509e commit 021fb40

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e6de6b7da8ee88bf84b0e217900051334be08da
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5-
refs/heads/try: cb864899df68ddc396cc63e63cdcbc22c58b930d
5+
refs/heads/try: dbb0d5d39772eff1992a974b8ca4d2d41f5bbf6a
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 & 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)