Add an ignore! macro, remove support for nested block comments, re: #2755.

This commit is contained in:
Graydon Hoare
2012-09-07 16:58:27 -07:00
parent 249668f223
commit e9f5a099df
6 changed files with 26 additions and 28 deletions

View File

@@ -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, ...])]];