summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorKevin Atkinson <kevina@cs.utah.edu>2012-02-01 16:19:45 -0700
committerKevin Atkinson <kevina@cs.utah.edu>2012-02-03 20:41:49 -0700
commita2dde9a69218ab350b442caec00d2b991ba2262c (patch)
treec66979892a5229502d56c586f2327ef97f872e4c /src/test
parentf7fab77102057b55202992c7e73d62d7123f6356 (diff)
Allow anti-quotes to also be ast::ty rather than just ast::expr.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/qquote.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/test/run-pass/qquote.rs b/src/test/run-pass/qquote.rs
index 247382b7f40..ac9f3b23495 100644
--- a/src/test/run-pass/qquote.rs
+++ b/src/test/run-pass/qquote.rs
@@ -50,12 +50,6 @@ fn main() {
     let abc = #ast{23};
     check_pp(abc,  pprust::print_expr, "23");
 
-    let expr = #ast{1 - $0 + 8};
-    check_pp(expr,  pprust::print_expr, "1 - $0 + 8");
-
-    let expr2 = rustc::syntax::ext::qquote::replace(expr, [abc]);
-    check_pp(expr2,  pprust::print_expr, "1 - 23 + 8");
-
     let expr3 = #ast{2 - $(abc) + 7};
     check_pp(expr3,  pprust::print_expr, "2 - 23 + 7");
 
@@ -68,6 +62,9 @@ fn main() {
     let item = #ast(item){const x : int = 10;};
     check_pp(item, pprust::print_item, "const x: int = 10;");
 
+    //let item2: @ast::item = #ast(item){const x : int = $(abc);};
+    //check_pp(item2, pprust::print_item, "const x: int = 23;");
+
     let stmt = #ast(stmt){let x = 20;};
     check_pp(*stmt, pprust::print_stmt, "let x = 20;");