Releases: dtolnay/proc-macro2
Releases · dtolnay/proc-macro2
1.0.5
- Improve performance of
impl Extend<TokenTree> for TokenStream
(#198)
1.0.4
- Add
Literal::subspan
method to match libproc_macro (#195)
1.0.3
- Treat dev builds of rustc the same as a nightly, with unstable features available
1.0.2
- Add
impl From<TokenTree> for TokenStream
to match libproc_macro
1.0.1
- Documentation improvements
- Fail with a better error message when being built on a compiler that is too old
1.0.0
- Minimum supported rustc version is raised from 1.15 to 1.31
- Deprecated
TokenStream::empty
constructor has been removed in favor of TokenStream::new
0.4.29
- Support compiling with
RUSTFLAGS='-Z allow-features='
on a nightly compiler (#176, thanks @Nemo157)
0.4.28
- Avoid needlessly escaping
'
inside a string literal or "
inside a character literal (#60)
- Add impls of Copy, Clone, Debug, PartialEq, Eq for proc_macro2::LineColumn
0.4.27
-
Add Cargo cfg "span-locations"
to expose Span::start
and Span::end
accessors that give the line and column location of a Span (#166)
Be aware that this involves storing more information than before inside of Spans which increases their size -- leading to possibly slower performance of any code involving proc-macro2 types (but only when the cfg is enabled).