syn breaking changes
Updated December 4, 2026
On this page
Latest version 3.0.10, released November 9, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 2.0.0 to 3.0.0: 68 breaking changes in 1 version.
- From 0.5.0 to 3.0.0: 1,068 breaking changes in 11 versions.
syn 3.0.0 breaking changes
- Removed
visit, visit_mut and fold no longer provide a method for processing Span. Remove any code that overrides it. github.com - Removed
Some enums no longer implement From. Construct the variant by name instead, such as Expr::Array(e) in place of e.into(). github.com - Removed
Arm.guard
The guard field of Arm is removed; the guard now lives in the arm's pat as a Pat::Guard variant. github.com - Removed
LitFloat
LitFloat no longer implements From<proc_macro2::Literal>. Use Lit::new(literal) and match Lit::Float. github.com - Removed
LitInt
LitInt no longer implements From<proc_macro2::Literal>. Use Lit::new(literal) and match Lit::Int. github.com - Removed
StrStyle
The unused StrStyle enum has been removed. github.com - Removed
syn::BareFnArg
syn::BareFnArg was removed in syn 3.0.0 crates.io - Removed
syn::BareVariadic
The BareVariadic type is renamed to FnPtrVariadic. Update code that refers to the old name. crates.io - Removed
syn::FieldMutability
syn::FieldMutability was removed in syn 3.0.0 crates.io - Removed
syn::fold::fold_bare_fn_arg
syn::fold::fold_bare_fn_arg was removed in syn 3.0.0 crates.io - Removed
syn::fold::fold_bare_variadic
syn::fold::fold_bare_variadic was removed in syn 3.0.0 crates.io - Removed
syn::fold::fold_field_mutability
syn::fold::fold_field_mutability was removed in syn 3.0.0 crates.io - Removed
syn::fold::fold_impl_restriction
syn::fold::fold_impl_restriction was removed in syn 3.0.0 crates.io - Removed
syn::fold::fold_span
syn::fold::fold_span was removed in syn 3.0.0 crates.io - Removed
syn::fold::fold_trait_bound_modifier
syn::fold::fold_trait_bound_modifier was removed in syn 3.0.0 crates.io - Removed
syn::fold::fold_type_bare_fn
syn::fold::fold_type_bare_fn was removed in syn 3.0.0 crates.io - Removed
syn::fold::Fold::fold_bare_fn_arg
syn::fold::Fold::fold_bare_fn_arg was removed in syn 3.0.0 crates.io - Removed
syn::fold::Fold::fold_bare_variadic
syn::fold::Fold::fold_bare_variadic was removed in syn 3.0.0 crates.io - Removed
syn::fold::Fold::fold_field_mutability
syn::fold::Fold::fold_field_mutability was removed in syn 3.0.0 crates.io - Removed
syn::fold::Fold::fold_impl_restriction
syn::fold::Fold::fold_impl_restriction was removed in syn 3.0.0 crates.io - Removed
syn::fold::Fold::fold_span
syn::fold::Fold::fold_span was removed in syn 3.0.0 crates.io - Removed
syn::fold::Fold::fold_trait_bound_modifier
syn::fold::Fold::fold_trait_bound_modifier was removed in syn 3.0.0 crates.io - Removed
syn::fold::Fold::fold_type_bare_fn
syn::fold::Fold::fold_type_bare_fn was removed in syn 3.0.0 crates.io - Removed
syn::ImplRestriction
syn::ImplRestriction was removed in syn 3.0.0 crates.io - Removed
syn::TraitBoundModifier
syn::TraitBoundModifier was removed in syn 3.0.0 crates.io - Removed
syn::TypeBareFn
syn::TypeBareFn was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::visit_bare_fn_arg_mut
syn::visit_mut::visit_bare_fn_arg_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::visit_bare_variadic_mut
syn::visit_mut::visit_bare_variadic_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::visit_field_mutability_mut
syn::visit_mut::visit_field_mutability_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::visit_impl_restriction_mut
syn::visit_mut::visit_impl_restriction_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::visit_span_mut
syn::visit_mut::visit_span_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::visit_trait_bound_modifier_mut
syn::visit_mut::visit_trait_bound_modifier_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::visit_type_bare_fn_mut
syn::visit_mut::visit_type_bare_fn_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::VisitMut::visit_bare_fn_arg_mut
syn::visit_mut::VisitMut::visit_bare_fn_arg_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::VisitMut::visit_bare_variadic_mut
syn::visit_mut::VisitMut::visit_bare_variadic_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::VisitMut::visit_field_mutability_mut
syn::visit_mut::VisitMut::visit_field_mutability_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::VisitMut::visit_impl_restriction_mut
syn::visit_mut::VisitMut::visit_impl_restriction_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::VisitMut::visit_span_mut
syn::visit_mut::VisitMut::visit_span_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::VisitMut::visit_trait_bound_modifier_mut
syn::visit_mut::VisitMut::visit_trait_bound_modifier_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit_mut::VisitMut::visit_type_bare_fn_mut
syn::visit_mut::VisitMut::visit_type_bare_fn_mut was removed in syn 3.0.0 crates.io - Removed
syn::visit::visit_bare_fn_arg
syn::visit::visit_bare_fn_arg was removed in syn 3.0.0 crates.io - Removed
syn::visit::visit_bare_variadic
syn::visit::visit_bare_variadic was removed in syn 3.0.0 crates.io - Removed
syn::visit::visit_field_mutability
syn::visit::visit_field_mutability was removed in syn 3.0.0 crates.io - Removed
syn::visit::visit_impl_restriction
syn::visit::visit_impl_restriction was removed in syn 3.0.0 crates.io - Removed
syn::visit::visit_span
syn::visit::visit_span was removed in syn 3.0.0 crates.io - Removed
syn::visit::visit_trait_bound_modifier
syn::visit::visit_trait_bound_modifier was removed in syn 3.0.0 crates.io - Removed
syn::visit::visit_type_bare_fn
syn::visit::visit_type_bare_fn was removed in syn 3.0.0 crates.io - Removed
syn::visit::Visit::visit_bare_fn_arg
syn::visit::Visit::visit_bare_fn_arg was removed in syn 3.0.0 crates.io - Removed
syn::visit::Visit::visit_bare_variadic
syn::visit::Visit::visit_bare_variadic was removed in syn 3.0.0 crates.io - Removed
syn::visit::Visit::visit_field_mutability
syn::visit::Visit::visit_field_mutability was removed in syn 3.0.0 crates.io
And 18 more in this version. Sign up to see every change
syn 2.0.0 breaking changes
- Removed
Code built with rustc 1.31 to 1.55 must upgrade its compiler to 1.56 or later. github.com - Removed
&raw const expr
The &raw const raw-pointer reference syntax is no longer supported. github.com - Removed
AttributeArgs
Use Punctuated<Meta, Token![,]> instead. github.com - Removed
box expr
Parsing of the box expr syntax is gone, so code that parses it no longer works. github.com - Removed
Expr.AssignOp
Assignment operators are now represented by Expr::Binary. github.com - Removed
GenericMethodArgument
Use the unified GenericArgument type instead. github.com - Removed
Item.Macro2
Macros 2.0 items are no longer represented. github.com - Removed
MethodTurbofish
Use the unified GenericArgument type instead. github.com - Removed
Stmt.Semi
The optional semicolon is now an Option on Stmt::Expr. github.com - Removed
Visibility.Crate
The pub(crate) visibility form is no longer represented by Visibility::Crate. github.com
And 43 more in this version. Sign up to see every change
syn 1.0.0 breaking changes
- Removed
Attribute.interpret_meta
Use parse_meta instead. github.com - Removed
BareFnArgName
Type::BareFn argument names are now Ident. github.com - Removed
Expr.InPlace
The variant was removed as a result of RFC 2387. github.com - Removed
FnDecl
Use Signature instead. github.com - Removed
ImplItem.Existential
The variant was removed in favor of RFC 2515; match arms for it must be dropped. github.com - Removed
Item.Existential
The variant was removed in favor of RFC 2515; match arms for it must be dropped. github.com - Removed
MethodSig
Use Signature instead. github.com - Renamed
CapSelf
Token type names changed; Token![Self] usage is unaffected. github.com - Renamed
Pat.Ref
Update pattern matches to use the new variant name. github.com - Renamed
Self_
Token type names changed; Token![self] usage is unaffected. github.com
And 736 more in this version. Sign up to see every change
syn 0.15.0 breaking changes
- Signature changed
syn::Ident
Was pub use proc_macro2::Ident; now pub use ident::Ident. crates.io - Signature changed
syn::Lifetime::apostrophe
Was apostrophe: Apostrophe; now apostrophe: Span. crates.io - Signature changed
syn::Lifetime::new
Was fn new(s: &str, span: Span) -> Self; now fn new(symbol: &str, span: Span) -> Self. crates.io - Signature changed
syn::parse
Was fn parse<T>(tokens: proc_macro::TokenStream) -> Result<T, ParseError> where T: Synom,; now fn parse<T: parse::Parse>(tokens: proc_macro::TokenStream) -> Result<T, Error>. crates.io - Signature changed
syn::parse_file
Was fn parse_file(mut content: &str) -> Result<File, ParseError>; now fn parse_file(mut content: &str) -> Result<File, Error>. crates.io - Signature changed
syn::parse_str
Was fn parse_str<T: Synom>(s: &str) -> Result<T, ParseError>; now fn parse_str<T: parse::Parse>(s: &str) -> Result<T, Error>. crates.io - Signature changed
syn::parse2
Was fn parse2<T>(tokens: proc_macro2::TokenStream) -> Result<T, ParseError> where T: Synom,; now fn parse2<T: parse::Parse>(tokens: proc_macro2::TokenStream) -> Result<T, Error>. crates.io - Signature changed
syn::punctuated::Punctuated::insert
Was fn insert(&mut self, index: usize, value: T); now fn insert(&mut self, index: usize, value: T) where P: Default,. crates.io - Signature changed
syn::punctuated::Punctuated::parse_separated_nonempty
Was fn parse_separated_nonempty(input: Cursor) -> PResult<Self>; now fn parse_separated_nonempty(input: ParseStream) -> Result<Self> where T: Parse, P: Token + Parse,. crates.io - Signature changed
syn::punctuated::Punctuated::parse_separated_nonempty_with
Was fn parse_separated_nonempty_with(input: Cursor, parse: fn(Cursor) -> PResult<T>) -> PResult<Self>; now fn parse_separated_nonempty_with(input: ParseStream, parser: fn(ParseStream) -> Result<T>) -> Result<Self> where P: Token + Parse,. crates.io
And 4 more in this version. Sign up to see every change
syn 0.14.0 breaking changes
- Behavior changed
syn.Ident
syn::Ident is no longer its own type and is now a re-export of proc_macro2::Ident. Code that relies on the old type's identity or implementations may need to change to use proc_macro2::Ident. github.com - Signature changed
syn::Ident
Was struct Ident; now pub use proc_macro2::Ident. crates.io
syn 0.13.0 breaking changes
- Renamed
=>
The fat arrow token type is renamed to FatArrow; update code that refers to the old name. github.com - Renamed
Expr.AddrOf
The AddrOf expression variant is renamed to Reference; update code matching on or constructing it. github.com - Behavior changed
Punctuated
The second type parameter of Punctuated iterators is removed, so code naming those iterator types must change. github.com - Signature changed
syn::buffer::Cursor::literal
Was fn literal(mut self) -> Option<(Span, Literal, Cursor<'a>)>; now fn literal(mut self) -> Option<(Literal, Cursor<'a>)>. crates.io - Signature changed
syn::buffer::Cursor::op
Was fn op(mut self) -> Option<(Span, char, Spacing, Cursor<'a>)>; now fn op(mut self) -> Option<(Op, Cursor<'a>)>. crates.io - Signature changed
syn::buffer::Cursor::term
Was fn term(mut self) -> Option<(Span, Term, Cursor<'a>)>; now fn term(mut self) -> Option<(Term, Cursor<'a>)>. crates.io - Signature changed
syn::Ident::span
Was span: Span; now fn span(&self) -> Span. crates.io - Signature changed
syn::Lifetime::new
The signature of Lifetime::new changes to match Ident::new; update calls to Lifetime::new. crates.io - Signature changed
syn::Lifetime::span
Was span: Span; now fn span(&self) -> Span. crates.io - Signature changed
syn::punctuated::Iter
Was struct Iter<'a, T: 'a, P: 'a>; now struct Iter<'a, T: 'a>. crates.io
And 3 more in this version. Sign up to see every change
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
syn 0.12.0 breaking changes
- Behavior changed
The package now works on Macros 2.0-style token streams rather than strings of source code, so code that relied on the old string-based processing must be updated. github.com - Signature changed
syn::Abi
Was enum Abi; now pub use ty::Abi. crates.io
And 39 more in this version.
syn 0.11.0 breaking changes
- Removed
The registry used for expanding custom derives on stable Rust was removed. Code relying on it must change. github.com - Removed
syn::BlockCheckMode
BlockCheckMode and Unsafety were unified into one type; the old BlockCheckMode name is gone. Use Unsafety instead. crates.io
And 53 more in this version.
syn 0.9.0 breaking changes
- Removed
syn::BareFnTy::decl
syn::BareFnTy::decl was removed in syn 0.9.0 crates.io - Removed
syn::Block::rules
syn::Block::rules was removed in syn 0.9.0 crates.io
And 64 more in this version.
syn 0.7.0 breaking changes
- Removed
syn::Expr::InPlace
syn::Expr::InPlace was removed in syn 0.7.0 crates.io - Removed
syn::ViewPath::ViewPathGlob
syn::ViewPath::ViewPathGlob was removed in syn 0.7.0 crates.io
And 4 more in this version.
syn 0.6.0 breaking changes
- Removed
syn::Item::body
syn::Item::body was removed in syn 0.6.0 crates.io - Removed
syn::Item::generics
syn::Item::generics was removed in syn 0.6.0 crates.io
And 2 more in this version.
syn 0.5.0 breaking changes
- Removed
syn::do_parse!
syn::do_parse! was removed in syn 0.5.0 crates.io - Removed
syn::Style
syn::Style was removed in syn 0.5.0 crates.io
And 7 more in this version.
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.