Skip to content

Releases: dtolnay/proc-macro2

1.0.3

21 Sep 08:00
1.0.3

Choose a tag to compare

  • Treat dev builds of rustc the same as a nightly, with unstable features available

1.0.2

21 Sep 07:58
1.0.2
f75cb32

Choose a tag to compare

  • Add impl From<TokenTree> for TokenStream to match libproc_macro

1.0.1

16 Aug 16:11
1.0.1
5956a96

Choose a tag to compare

  • Documentation improvements
  • Fail with a better error message when being built on a compiler that is too old

1.0.0

13 Aug 17:45
1.0.0
eecff60

Choose a tag to compare

  • 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.30

08 May 20:41
0.4.30
f514921

Choose a tag to compare

  • Implement Clone for TokenStream's IntoIter (#177, thanks @ivanbakel)

0.4.29

28 Apr 21:23
0.4.29
79c8ed7

Choose a tag to compare

  • Support compiling with RUSTFLAGS='-Z allow-features=' on a nightly compiler (#176, thanks @Nemo157)

0.4.28

23 Apr 02:17
0.4.28
16c2b45

Choose a tag to compare

  • 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

31 Jan 23:37
0.4.27
7b9bd94

Choose a tag to compare

  • 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

20 Jan 04:56
0.4.26
c34356a

Choose a tag to compare

  • 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

16 Jan 20:31
0.4.25
dd1af43

Choose a tag to compare

  • Disable stable shim when building with procmacro2_semver_exempt on a nightly compiler (#158)