Skip to content

Commit f300c7e

Browse files
committed
---
yaml --- r: 79730 b: refs/heads/try c: d876a72 h: refs/heads/master v: v3
1 parent 37564eb commit f300c7e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
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: 015ba31c02b912220a9b7323e1a6ae3bad4ab927
5+
refs/heads/try: d876a721d2efa7cbf7b0224c396a5da9079a8d5d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libsyntax/fold.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,4 +1019,15 @@ mod test {
10191019
token::get_ident_interner()),
10201020
~"zz!zz((zz$zz:zz$(zz $zz:zz)zz+=>(zz$(zz$zz$zz)+)))");
10211021
}
1022+
1023+
// and in cast expressions... this appears to be an existing bug.
1024+
#[test] fn ident_transformation_in_types () {
1025+
let zz_fold = fun_to_ident_folder(to_zz());
1026+
let ast = string_to_crate(@"fn a() {let z = 13 as int;}");
1027+
assert_pred!(matches_codepattern,
1028+
"matches_codepattern",
1029+
pprust::to_str(&zz_fold.fold_crate(ast),fake_print_crate,
1030+
token::get_ident_interner()),
1031+
~"fn zz(){let zz=13 as zz;}");
1032+
}
10221033
}

0 commit comments

Comments
 (0)