Skip to content

Commit 6672b46

Browse files
committed
---
yaml --- r: 14038 b: refs/heads/try c: dbb1388 h: refs/heads/master v: v3
1 parent d0d7088 commit 6672b46

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 3604f36938f46104d8b538edbcbd322e4829a081
5+
refs/heads/try: dbb13883f79cc4a1d232bd3fa97f0da0b58872bd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/test/run-pass/qquote.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ fn main() {
5656
let expr4 = #ast{2 - $(#(3)) + 9};
5757
check_pp(expr4, pprust::print_expr, "2 - 3 + 9");
5858

59-
let ty = #ast(ty){option<int>};
60-
check_pp(ty, pprust::print_type, "option<int>");
59+
let ty = #ast(ty){int};
60+
check_pp(ty, pprust::print_type, "int");
61+
62+
let ty2 = #ast(ty){option<$(ty)>};
63+
check_pp(ty2, pprust::print_type, "option<int>");
6164

6265
let item = #ast(item){const x : int = 10;};
6366
check_pp(item, pprust::print_item, "const x: int = 10;");
@@ -68,8 +71,8 @@ fn main() {
6871
let stmt = #ast(stmt){let x = 20;};
6972
check_pp(*stmt, pprust::print_stmt, "let x = 20;");
7073

71-
let stmt2 = #ast(stmt){let x : $(ty) = some($(abc));};
72-
check_pp(*stmt2, pprust::print_stmt, "let x: option<int> = some(23);");
74+
let stmt2 = #ast(stmt){let x : $(ty) = $(abc);};
75+
check_pp(*stmt2, pprust::print_stmt, "let x: int = 23;");
7376

7477
let pat = #ast(pat){some(_)};
7578
check_pp(pat, pprust::print_pat, "some(_)");

0 commit comments

Comments
 (0)