Skip to content

Rollup of 7 pull requests #72262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
May 16, 2020
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5e35493
cargo update -p serde_derive
Xanewok May 5, 2020
403a9d0
cargo update -p failure_derive
Xanewok May 5, 2020
8c6e568
cargo update -p pest_generator
Xanewok May 5, 2020
3bdaced
cargo update -p derive-new
Xanewok May 5, 2020
e26f35d
rustbook: Bump mdbook dependency
Xanewok May 5, 2020
5a0ac05
Use simpler impls for some `Iterator` methods for slices.
nnethercote May 13, 2020
3b10858
Change `Iterator::nth` to use `self.next()` in a `while` loop.
nnethercote May 13, 2020
00268be
Remove lang_items\(\).*\.unwrap\(\)
cofibrant May 14, 2020
084cdde
Updated documentation of Prefix::VerbatimDisk
SOF3 May 15, 2020
d5ea925
Implement Default for proc_macro::TokenStream
dtolnay May 15, 2020
7433c4d
Improve the documentation for ManuallyDrop to resolve conflicting usa…
Diggsey Apr 27, 2020
78eb64f
Fix typo Arbintrary to Arbitrary
0xPoe May 16, 2020
9c32e7a
Rollup merge of #71625 - Diggsey:improve-manually-drop-docs, r=RalfJung
Dylan-DPC May 16, 2020
9dd7ad3
Rollup merge of #71919 - Xanewok:bump-syn-1, r=Xanewok
Dylan-DPC May 16, 2020
e8f0fb1
Rollup merge of #72166 - nnethercote:simpler-slice-Iterator-methods, …
Dylan-DPC May 16, 2020
1be88e6
Rollup merge of #72216 - doctorn:require-lang-item, r=lcnr
Dylan-DPC May 16, 2020
8b1cc10
Rollup merge of #72230 - SOF3:patch-1, r=kennytm
Dylan-DPC May 16, 2020
25c91ea
Rollup merge of #72234 - dtolnay:default, r=petrochenkov
Dylan-DPC May 16, 2020
e43dd47
Rollup merge of #72258 - Rustin-Liu:rustin-patch-typo, r=dtolnay
Dylan-DPC May 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Implement Default for proc_macro::TokenStream
  • Loading branch information
dtolnay committed May 15, 2020
commit d5ea92526549e40ff43b34f25fe6bee4418a3186
7 changes: 7 additions & 0 deletions src/libproc_macro/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down