mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 11:58:04 +03:00
Implement Default for proc_macro::TokenStream
This commit is contained in:
@@ -158,6 +158,13 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
}
|
||||
}
|
||||
|
||||
#[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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user