//! Syntax extensions in the Rust compiler.
-#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
- html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
- html_root_url = "https://doc.rust-lang.org/nightly/")]
+#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![deny(rust_2018_idioms)]
#![feature(proc_macro_internals)]
#![feature(proc_macro_span)]
#![feature(decl_macro)]
-#![feature(str_escape)]
+#![feature(nll)]
#![feature(rustc_diagnostic_macros)]
#![recursion_limit="256"]
extern crate proc_macro;
-use rustc_errors as errors;
-
mod diagnostics;
mod asm;
NormalTT {
expander: Box::new($f as MacroExpanderFn),
def_info: None,
- allow_internal_unstable: false,
+ allow_internal_unstable: None,
allow_internal_unsafe: false,
local_inner_macros: false,
unstable_feature: None,
NormalTT {
expander: Box::new(format::expand_format_args),
def_info: None,
- allow_internal_unstable: true,
+ allow_internal_unstable: Some(vec![
+ Symbol::intern("fmt_internals"),
+ ].into()),
allow_internal_unsafe: false,
local_inner_macros: false,
unstable_feature: None,
NormalTT {
expander: Box::new(format::expand_format_args_nl),
def_info: None,
- allow_internal_unstable: true,
+ allow_internal_unstable: Some(vec![
+ Symbol::intern("fmt_internals"),
+ ].into()),
allow_internal_unsafe: false,
local_inner_macros: false,
unstable_feature: None,