X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibproc_macro%2Flib.rs;h=d5cdc266acb6accbdb10bb8a76b05aa3bd73d4a8;hb=f359a94849f5a66be4e5058ad9f5a480623a4627;hp=c0f7714ca211af612fa2cb61fd026056d7ade99e;hpb=5922a1916bae66a80acc8aacf28e6aa1743a8dce;p=rust.git diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index c0f7714ca21..d5cdc266acb 100644 --- a/src/libproc_macro/lib.rs +++ b/src/libproc_macro/lib.rs @@ -19,12 +19,15 @@ #![feature(nll)] #![feature(staged_api)] +#![feature(allow_internal_unstable)] #![feature(const_fn)] +#![feature(decl_macro)] #![feature(extern_types)] #![feature(in_band_lifetimes)] #![feature(optin_builtin_traits)] #![feature(mem_take)] #![feature(non_exhaustive)] +#![feature(rustc_attrs)] #![feature(specialization)] #![recursion_limit="256"] @@ -222,11 +225,10 @@ fn into_iter(self) -> IntoIter { /// /// Unquoting is done with `$`, and works by taking the single next ident as the unquoted term. /// To quote `$` itself, use `$$`. -/// -/// This is a dummy macro, the actual implementation is in `quote::quote`.` #[unstable(feature = "proc_macro_quote", issue = "54722")] -#[macro_export] -macro_rules! quote { () => {} } +#[allow_internal_unstable(proc_macro_def_site)] +#[rustc_builtin_macro] +pub macro quote ($($t:tt)*) { /* compiler built-in */ } #[unstable(feature = "proc_macro_internals", issue = "27812")] #[doc(hidden)]