Releases: dtolnay/proc-macro2
Releases · dtolnay/proc-macro2
0.4.0
Track upstream proc_macro changes.
- Rename
Term
toIdent
- Rename
Punct
toOp
- Remove
Term::as_str
- Rename
Op::op
toPunct::as_char
Term::new
no longer accepts lifetimes or raw idents- Lifetimes are lexed as a
Joint
'
character followed by anIdent
Ident::new_raw
is a newprocmacro2_semver_exempt
API for creating raw
identifiers.{Eq,PartialEq,Ord,PartialOrd,Hash} for Ident
- Remove
Copy for Term
- Remove
Copy for Op
- Add
Extend<TokenTree> for TokenStream