Skip to content

Commit 8572a33

Browse files
committed
---
yaml --- r: 131335 b: refs/heads/dist-snap c: 7bad96e h: refs/heads/master i: 131333: 79663d8 131331: 6ac531b 131327: 6d566ed v: v3
1 parent 8f8331a commit 8572a33

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 47eec97cdab94989cc4c5f20a1e1f2310df997aa
9+
refs/heads/dist-snap: 7bad96e742b187b671500702bccb37ab1724bae5
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,13 +1274,13 @@ mod test {
12741274
}
12751275

12761276
// FIXME #9384, match variable hygiene. Should expand into
1277-
// fn z() {match 8 {x_1 => {match 9 {x_2 | x_2 => x_2 + x_1}}}}
1277+
// fn z() {match 8 {x_1 => {match 9 {x_2 | x_2 if x_2 == x_1 => x_2 + x_1}}}}
12781278
#[test] fn issue_9384(){
12791279
run_renaming_test(
1280-
&("macro_rules! bad_macro (($ex:expr) => ({match 9 {x | x => x + $ex}}))
1281-
fn z() {match 8 {x => bad_macro!(_x)}}",
1280+
&("macro_rules! bad_macro (($ex:expr) => ({match 9 {x | x if x == $ex => x + $ex}}))
1281+
fn z() {match 8 {x => bad_macro!(x)}}",
12821282
// NB: the third "binding" is the repeat of the second one.
1283-
vec!(vec!(1),vec!(0),vec!(0)),
1283+
vec!(vec!(1,3),vec!(0,2),vec!(0,2)),
12841284
true),
12851285
0)
12861286
}

0 commit comments

Comments
 (0)