proc-macro2 breaking changes
proc-macro2 1.0.0 (August 13, 2019) is its newest release with breaking changes, 4 of them. The first: Removed proc_macro2::token_stream::TokenStream::empty. Every breaking API change we have recorded in proc-macro2 on crates.io: 36 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.0.107, released July 19, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 0.4.0 to 1.0.0: 4 breaking changes in 1 version.
- From 0.2.0 to 1.0.0: 35 breaking changes in 3 versions.
proc-macro2 1.0.0 breaking changes
- Removed
proc_macro2::token_stream::TokenStream::empty
Use TokenStream::new instead. crates.io - Removed
proc_macro2::TokenStream::empty
Use TokenStream::new instead. crates.io - Removed
TokenStream.empty
The deprecated TokenStream::empty constructor has been removed. Call TokenStream::new instead. github.com - Behavior changed
The minimum supported rustc version is now 1.31 instead of 1.15. Older compilers can no longer build the package. github.com
proc-macro2 0.4.0 breaking changes
- Removed
Op
The Copy trait was removed from Op, so copying values now requires clone or moves. github.com - Removed
proc_macro2::Op
proc_macro2::Op was removed in proc-macro2 0.4.0 crates.io - Removed
proc_macro2::Term
proc_macro2::Term was removed in proc-macro2 0.4.0 crates.io - Removed
proc_macro2::TokenTree::Op
proc_macro2::TokenTree::Op was removed in proc-macro2 0.4.0 crates.io - Removed
proc_macro2::TokenTree::Term
proc_macro2::TokenTree::Term was removed in proc-macro2 0.4.0 crates.io - Removed
Term
The Copy trait was removed from Term, so copying values now requires clone or moves. github.com - Removed
Term.as_str
Term::as_str was removed with no replacement named in the notes. github.com - Renamed
Op.op
The Op::op method was renamed to Punct::as_char. Update callers to the new name. github.com - Renamed
Punct
The Punct type was renamed to Op. Update code that names Punct to use Op. github.com - Renamed
Term
The Term type was renamed to Ident. Update code that names Term to use Ident. github.com
And 2 more in this version. Sign up to see every change
proc-macro2 0.3.0 breaking changes
- Removed
proc_macro2::Literal::byte_char
proc_macro2::Literal::byte_char was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Literal::doccomment
proc_macro2::Literal::doccomment was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Literal::f32
proc_macro2::Literal::f32 was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Literal::f64
proc_macro2::Literal::f64 was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Literal::float
proc_macro2::Literal::float was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Literal::integer
proc_macro2::Literal::integer was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Literal::raw_byte_string
proc_macro2::Literal::raw_byte_string was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Literal::raw_string
proc_macro2::Literal::raw_string was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::Term::intern
proc_macro2::Term::intern was removed in proc-macro2 0.3.0 crates.io - Removed
proc_macro2::TokenNode
proc_macro2::TokenNode was removed in proc-macro2 0.3.0 crates.io
And 9 more in this version. Sign up to see every change
proc-macro2 0.2.0 breaking changes
- Configuration changed
Builds that enable the "unstable" cfg must switch to the "nightly" cfg instead. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.