Releases: dtolnay/proc-macro2
Releases · dtolnay/proc-macro2
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).
0.4.26
- Update documentation to 2018 edition
- Rename
span.unstable()
method to span.unwrap()
; this method is usable from a stable compiler but panics if called from outside of a procedural macro
0.4.25
- Disable stable shim when building with procmacro2_semver_exempt on a nightly compiler (#158)
0.4.24
- Remove semver exempt type
proc_macro2::FileName
in favor of PathBuf
(rust-lang/rust@e5e29d1)
- Remove
Send
and Sync
impls of semver exempt type SourceFile
(#141)
- Support building semver exempt APIs on stable channel (#152)
0.4.23
- Work around compilation failures in docs.rs when proc-macro2 is used as a dependency (#147)
0.4.22
- Attempt to work around documentation not appearing on docs.rs (#145)
0.4.21
- Add support for constructing 128 bit
Literal
integers (#144)