The other cases: `concat_idents!`, `log_syntax!`, and `trace_macros!`, (these macros, with `asm!`, are handled (eagerly) in feature_gate.rs).
This commit is contained in:
@@ -11,12 +11,20 @@
|
||||
use ast;
|
||||
use codemap;
|
||||
use ext::base;
|
||||
use feature_gate;
|
||||
use print;
|
||||
|
||||
pub fn expand_syntax_ext<'cx>(cx: &'cx mut base::ExtCtxt,
|
||||
sp: codemap::Span,
|
||||
tts: &[ast::TokenTree])
|
||||
-> Box<base::MacResult+'cx> {
|
||||
if !cx.ecfg.enable_log_syntax() {
|
||||
feature_gate::emit_feature_err(&cx.parse_sess.span_diagnostic,
|
||||
"log_syntax",
|
||||
sp,
|
||||
feature_gate::EXPLAIN_LOG_SYNTAX);
|
||||
return base::DummyResult::any(sp);
|
||||
}
|
||||
|
||||
cx.print_backtrace();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user