Implement Default for proc_macro::TokenStream

This commit is contained in:
David Tolnay 2020-05-15 09:12:41 -07:00
parent 85f0da67ff
commit d5ea925265
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -158,6 +158,13 @@ impl fmt::Debug for TokenStream {
}
}
#[stable(feature = "proc_macro_token_stream_default", since = "1.45.0")]
impl Default for TokenStream {
fn default() -> Self {
TokenStream::new()
}
}
#[unstable(feature = "proc_macro_quote", issue = "54722")]
pub use quote::{quote, quote_span};