TokenStream::extend
Two new insta-stable impls in libproc_macro:
```rust
impl Extend<TokenTree> for TokenStream
impl Extend<TokenStream> for TokenStream
```
`proc_macro::TokenStream` already implements `FromIterator<TokenTree>` and `FromIterator<TokenStream>` so I elected to support the same input types for `Extend`.
**This commit reduces compile time of Serde derives by 60% (takes less than half as long to compile)** as measured by building our test suite:
```console
$ git clone https://github.com/serde-rs/serde
$ cd serde/test_suite
$ cargo check --tests --features proc-macro2/nightly
$ rm -f ../target/debug/deps/libtest_*.rmeta
$ time cargo check --tests --features proc-macro2/nightly
Before: 20.8 seconds
After: 8.6 seconds
```
r? @alexcrichton
pub mod parser;
#[cfg(test)]
pub mod parser_testing;
- pub mod small_vector;
pub mod move_map;
- mod thin_vec;
- pub use self::thin_vec::ThinVec;
-
mod rc_slice;
pub use self::rc_slice::RcSlice;
+
+ mod rc_vec;
+ pub use self::rc_vec::RcVec;
}
pub mod json;