diff options
| author | bors <bors@rust-lang.org> | 2020-05-16 14:15:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-16 14:15:18 +0000 |
| commit | 6163394e1ff98c53abc9d27f68b5608faa8cd9b6 (patch) | |
| tree | 2bf91dbd14be1303f249ff73fe3ff2bd7c3fdea8 /src/libproc_macro | |
| parent | 31add7e60709445617ab54a69f6f21cfcb2e3122 (diff) | |
| parent | e43dd47db2192a492f1f2124752b4039d655880b (diff) | |
| download | rust-6163394e1ff98c53abc9d27f68b5608faa8cd9b6.tar.gz rust-6163394e1ff98c53abc9d27f68b5608faa8cd9b6.zip | |
Auto merge of #72262 - Dylan-DPC:rollup-x56q1jj, r=Dylan-DPC
Rollup of 7 pull requests Successful merges: - #71625 (Improve the documentation for ManuallyDrop to resolve conflicting usage of terminology) - #71919 (Update transitive dependency to work towards removing syn <1.0 dep) - #72166 (Simpler slice `Iterator` methods) - #72216 (Remove `lang_items\(\).*\.unwrap\(\)`) - #72230 (Updated documentation of Prefix::VerbatimDisk) - #72234 (Implement Default for proc_macro::TokenStream) - #72258 (Fix typo Arbintrary to Arbitrary) Failed merges: r? @ghost
Diffstat (limited to 'src/libproc_macro')
| -rw-r--r-- | src/libproc_macro/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index 31bc61263ab..b6544341fa9 100644 --- a/src/libproc_macro/lib.rs +++ b/src/libproc_macro/lib.rs @@ -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}; |
