---
title: "proc-macro2 1.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each proc-macro2 release removed, renamed or changed: 36 breaking changes in 4 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/proc-macro2
last_updated: 2026-12-04
---

# 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

Latest version `1.0.107`, released July 19, 2026. [Source repository](https://github.com/dtolnay/proc-macro2)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.4.0](#v-0-4-0) to [1.0.0](#v-1-0-0): 4 breaking changes in 1 version.
- From [0.2.0](#v-0-2-0) to [1.0.0](#v-1-0-0): 35 breaking changes in 3 versions.

## proc-macro2 1.0.0 breaking changes

proc-macro2 1.0.0, released August 13, 2019: 4 breaking changes.

- **Removed** `proc_macro2::token_stream::TokenStream::empty`  

Use TokenStream::new instead. [crates.io](https://crates.io/crates/proc-macro2/1.0.0)
- **Removed** `proc_macro2::TokenStream::empty`  

Use TokenStream::new instead. [crates.io](https://crates.io/crates/proc-macro2/1.0.0)
- **Removed** `TokenStream.empty`  

The deprecated TokenStream::empty constructor has been removed. Call TokenStream::new instead. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/1.0.0)
- **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](https://github.com/dtolnay/proc-macro2/releases/tag/1.0.0)

## proc-macro2 0.4.0 breaking changes

proc-macro2 0.4.0, released May 17, 2018: 12 breaking changes.

- **Removed** `Op`  

The Copy trait was removed from Op, so copying values now requires clone or moves. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/0.4.0)
- **Removed** `proc_macro2::Op`  

proc_macro2::Op was removed in proc-macro2 0.4.0 [crates.io](https://crates.io/crates/proc-macro2/0.4.0)
- **Removed** `proc_macro2::Term`  

proc_macro2::Term was removed in proc-macro2 0.4.0 [crates.io](https://crates.io/crates/proc-macro2/0.4.0)
- **Removed** `proc_macro2::TokenTree::Op`  

proc_macro2::TokenTree::Op was removed in proc-macro2 0.4.0 [crates.io](https://crates.io/crates/proc-macro2/0.4.0)
- **Removed** `proc_macro2::TokenTree::Term`  

proc_macro2::TokenTree::Term was removed in proc-macro2 0.4.0 [crates.io](https://crates.io/crates/proc-macro2/0.4.0)
- **Removed** `Term`  

The Copy trait was removed from Term, so copying values now requires clone or moves. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/0.4.0)
- **Removed** `Term.as_str`  

Term::as_str was removed with no replacement named in the notes. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/0.4.0)
- **Renamed** `Op.op`  

The Op::op method was renamed to Punct::as_char. Update callers to the new name. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/0.4.0)
- **Renamed** `Punct`  

The Punct type was renamed to Op. Update code that names Punct to use Op. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/0.4.0)
- **Renamed** `Term`  

The Term type was renamed to Ident. Update code that names Term to use Ident. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/0.4.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## proc-macro2 0.3.0 breaking changes

proc-macro2 0.3.0, released March 31, 2018: 19 breaking changes.

- **Removed** `proc_macro2::Literal::byte_char`  

proc_macro2::Literal::byte_char was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Literal::doccomment`  

proc_macro2::Literal::doccomment was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Literal::f32`  

proc_macro2::Literal::f32 was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Literal::f64`  

proc_macro2::Literal::f64 was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Literal::float`  

proc_macro2::Literal::float was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Literal::integer`  

proc_macro2::Literal::integer was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Literal::raw_byte_string`  

proc_macro2::Literal::raw_byte_string was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Literal::raw_string`  

proc_macro2::Literal::raw_string was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::Term::intern`  

proc_macro2::Term::intern was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)
- **Removed** `proc_macro2::TokenNode`  

proc_macro2::TokenNode was removed in proc-macro2 0.3.0 [crates.io](https://crates.io/crates/proc-macro2/0.3.0)

And 9 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## proc-macro2 0.2.0 breaking changes

proc-macro2 0.2.0, released January 8, 2018: 1 breaking change.

- **Configuration changed**  

Builds that enable the "unstable" cfg must switch to the "nightly" cfg instead. [github.com](https://github.com/dtolnay/proc-macro2/releases/tag/0.2.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
