The proc_macro_quote feature now lives at #54722

This commit is contained in:
Alex Crichton 2018-10-01 10:42:16 -07:00
parent de3d640f59
commit b871293cfd
2 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
} }
} }
#[unstable(feature = "proc_macro_quote", issue = "38356")] #[unstable(feature = "proc_macro_quote", issue = "54722")]
pub use quote::{quote, quote_span}; pub use quote::{quote, quote_span};
/// Creates a token stream containing a single token tree. /// Creates a token stream containing a single token tree.
@ -252,7 +252,7 @@ fn into_iter(self) -> IntoIter {
/// To quote `$` itself, use `$$`. /// To quote `$` itself, use `$$`.
/// ///
/// This is a dummy macro, the actual implementation is in `quote::quote`.` /// This is a dummy macro, the actual implementation is in `quote::quote`.`
#[unstable(feature = "proc_macro_quote", issue = "38356")] #[unstable(feature = "proc_macro_quote", issue = "54722")]
#[macro_export] #[macro_export]
macro_rules! quote { () => {} } macro_rules! quote { () => {} }

View File

@ -70,7 +70,7 @@ macro_rules! quote {
/// This is the actual `quote!()` proc macro. /// This is the actual `quote!()` proc macro.
/// ///
/// It is manually loaded in `CStore::load_macro_untracked`. /// It is manually loaded in `CStore::load_macro_untracked`.
#[unstable(feature = "proc_macro_quote", issue = "38356")] #[unstable(feature = "proc_macro_quote", issue = "54722")]
pub fn quote(stream: TokenStream) -> TokenStream { pub fn quote(stream: TokenStream) -> TokenStream {
if stream.is_empty() { if stream.is_empty() {
return quote!(::TokenStream::new()); return quote!(::TokenStream::new());
@ -144,7 +144,7 @@ pub fn quote(stream: TokenStream) -> TokenStream {
/// Quote a `Span` into a `TokenStream`. /// Quote a `Span` into a `TokenStream`.
/// This is needed to implement a custom quoter. /// This is needed to implement a custom quoter.
#[unstable(feature = "proc_macro_quote", issue = "38356")] #[unstable(feature = "proc_macro_quote", issue = "54722")]
pub fn quote_span(_: Span) -> TokenStream { pub fn quote_span(_: Span) -> TokenStream {
quote!(::Span::def_site()) quote!(::Span::def_site())
} }