Skip to content

chore(deps): bump syn from 2.0.119 to 3.0.3 - #115

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/syn-3.0.3
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/syn-3.0.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 27, 2026 •

Copy link
Copy Markdown

Bumps syn from 2.0.119 to 3.0.3.

Release notes

Sourced from syn's releases.

3.0.3

  • Documentation improvements

3.0.2

3.0.1

3.0.0

This release contains adjustments to the syntax tree to account for ongoing Rust language development from the 3 years since syn 2.0.0 and to anticipate some in-flight Rust language RFCs.

These include: default values in fields, pinned type sugar, raw lifetimes, generator blocks and functions, unnamed enum variants, attributes in tuple types and tuple patterns, named arguments in parenthesized generic argument lists, lightweight clones, const traits, const function pointers, mutability restricted fields, supertrait auto implementation, final associated functions, trait implementability restrictions, const blocks in path arguments, item-level const blocks, return type notation, never patterns, function delegation, mutable by-reference bindings, in-place initialization, field projections, explicitly dyn-compatible traits, view types, file-level frontmatter, generic const arguments, guard patterns, lazy type aliases, explicitly safe foreign items, super let, unsafe fields, pattern types, heterogeneous try-blocks, function contracts, async function trait bounds, static closure coroutine syntax, unsafe binder types, move expressions, for-await loops, and postfix keywords.

Breaking changes

Modifiers

To reserve more room for language evolution, there are 10 new non-exhaustive structs in the syntax tree having the following commonality:

  • Name ending in Modifiers. {BlockModifiers, ClosureModifiers, ConstModifiers, FieldModifiers, FnModifiers, ImplModifiers, LocalModifiers, TraitBoundModifiers, TraitModifiers, TypeModifiers}

  • Each implements Default. The default value is guaranteed to comprise no tokens.

  • Non-exhaustive. Can only be instantiated by Syn's parser or by creating and then mutating ▁▁Modifiers::default().

  • Does not implement Parse. When parsing, they are parsed by the enclosing syntax tree node.

  • Does not implement ToTokens. In some cases the syntax that these nodes might hold in the future is not necessarily contiguous tokens.

  • Provides .require_empty() -> Result<()> which returns a meaningfully spanned error if the modifiers are different from the empty default. This enables a caller to reject syntax it does not recognize without knowing what that syntax may be.

Types

  • Type::BareFn has been renamed to Type::FnPtr to mirror the compiler's terminology. Together with this, BareVariadic is renamed to FnPtrVariadic.

  • The mutually exclusive const_token and mutability fields of Type::Ptr have been unified into an enum of type PointerMutability, which was already previously used by Expr::RawAddr.

  • Every Type variant now holds attributes, which can represent the attributes of element types inside a tuple type, or attributes for a function return type.

  • BareFnArg is renamed to NamedArg and is used in ParenthesizedGenericArguments, in addition to the existing use in Type::FnPtr.

Expressions

... (truncated)

Commits
  • 23dbaab Release 3.0.3
  • 16aad4e Merge pull request #2071 from dtolnay/compatibility
  • 42181b8 Add explanation of compatibility strategy
  • f3af08e Update test suite to nightly-2026-07-21
  • 88ee7be Release 3.0.2
  • 587bc20 Merge pull request #2070 from dtolnay/emptyrange
  • 96801f7 Allow Error::new_range at empty cursor range
  • 9dc16c9 Merge pull request #2069 from dtolnay/prevspan
  • 1db76b7 Align on using impl trait across all Error constructors
  • bfa1ebf Make Cursor::prev_span public
  • Additional commits viewable in compare view

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added component: packaging Cargo package contents, dependencies, and installable artifacts domain: supply-chain Dependencies, workflows, provenance, and publishing trust labels Jul 27, 2026
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.119 to 3.0.3.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.119...3.0.3)

---
updated-dependencies:
- dependency-name: syn
  dependency-version: 3.0.3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title Bump syn from 2.0.119 to 3.0.3 chore(deps): bump syn from 2.0.119 to 3.0.3 Jul 27, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/syn-3.0.3 branch from 078aa95 to 0ad65da Compare July 27, 2026 18:58
@plx plx mentioned this pull request Oct 21, 2026
5 of 6 tasks
plx added a commit that referenced this pull request Oct 21, 2026
Consolidate the open Dependabot proposals (#111, #112, #113, #115, #116,
#117, #129, #130, #138, #139) into one reviewed change.

Cargo: clap 4.6.6, log 0.4.34, thiserror 2.0, windows-sys 0.61 (unified,
dropping windows-sys 0.60.2 and the windows-targets 0.53 chain), and the syn
3.0 dev-dependency. Regenerate THIRD_PARTY_LICENSES.md and drop the
about.toml clarifications for crates no longer in the graph.

GitHub Actions: checkout v7.0.1, upload-artifact v7.0.1, setup-node v7.0.0,
upload-pages-artifact v5.0.0, deploy-pages v5.0.0, with the issue #61
checkout pin test and README CI example updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WUWzFoG6QJYfSytZacWniT

plx commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Superseded by #145 (merged as 0077a2b). It raises the dev-dependency requirement to syn = "3.0", which this lockfile-only change was missing. The syn-based contract tests pass unchanged on Rust 1.85.0 and stable.


Generated by Claude Code

@plx plx closed this Oct 21, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 21, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/cargo/syn-3.0.3 branch October 21, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: packaging Cargo package contents, dependencies, and installable artifacts domain: supply-chain Dependencies, workflows, provenance, and publishing trust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant