summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-09-07 16:58:27 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-09-07 16:58:36 -0700
commite9f5a099dfcb42c7f2bb38974b57bbde7042ee9c (patch)
treeee7269e1d1b3e9d79d8515e297768e72e0be1c59 /src/libsyntax/ext
parent249668f22396bde43523207117b3869e63b49c4f (diff)
downloadrust-e9f5a099dfcb42c7f2bb38974b57bbde7042ee9c.tar.gz
rust-e9f5a099dfcb42c7f2bb38974b57bbde7042ee9c.zip
Add an ignore! macro, remove support for nested block comments, re: #2755.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/expand.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 984ac9fb0e3..4558d0a1872 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -243,6 +243,7 @@ fn new_span(cx: ext_ctxt, sp: span) -> span {
 fn core_macros() -> ~str {
     return
 ~"{
+    macro_rules! ignore (($($x:tt)*) => (()))
     #macro[[#error[f, ...], log(core::error, #fmt[f, ...])]];
     #macro[[#warn[f, ...], log(core::warn, #fmt[f, ...])]];
     #macro[[#info[f, ...], log(core::info, #fmt[f, ...])]];