Implement Default for proc_macro::TokenStream
This commit is contained in:
parent
85f0da67ff
commit
d5ea925265
1 changed files with 7 additions and 0 deletions
|
@ -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};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue