Skip to content

Commit fd98a26

Browse files
committed
---
yaml --- r: 121854 b: refs/heads/master c: 7bad96e h: refs/heads/master v: v3
1 parent f05c027 commit fd98a26

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 47eec97cdab94989cc4c5f20a1e1f2310df997aa
2+
refs/heads/master: 7bad96e742b187b671500702bccb37ab1724bae5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: afdfe40aa0b7dfc7800dddbc1f55da979abfe486
55
refs/heads/try: 18dc3bc9e3314a250c0718ab329938e676410cdf

trunk/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)