Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proc_macro: make
TokenStream::from_streams
pre-allocate its vector.
This requires a pre-pass over the input streams. But that is cheap compared to the quadratic blowup associated with reallocating the accumulating vector on-the-fly.
- Loading branch information