Skip to content

chore(deps): bump syn from 2.0.119 to 3.0.1#1665

Merged
dependabot-pr-auto-approver[bot] merged 4 commits into
mainfrom
dependabot/cargo/syn-3.0.1
Jul 21, 2026
Merged

chore(deps): bump syn from 2.0.119 to 3.0.1#1665
dependabot-pr-auto-approver[bot] merged 4 commits into
mainfrom
dependabot/cargo/syn-3.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 20, 2026

Copy link
Copy Markdown
Contributor

Bumps syn from 2.0.119 to 3.0.1.

Release notes

Sourced from syn's releases.

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

  • In Expr::Closure, the fields or1_token and or2_token have been renamed to inputs_begin and inputs_end to indicate the beginning and ending | token of the closure inputs.

Statements

  • Attributes are now preserved on all expression kinds in statement position. Previously, parsing would silently lose attributes on some expression statements without a dedicated Expr variant, such as tail-call expressions.

... (truncated)

Commits

@dependabot dependabot Bot added the kind/dependencies For PRs that update dependencies or related components label Jul 20, 2026
Copilot AI review requested due to automatic review settings July 20, 2026 03:08
@dependabot dependabot Bot added the kind/dependencies For PRs that update dependencies or related components label Jul 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

Updates Rust proc-macro crates to use syn v3 across the workspace.

Changes:

  • Bumped syn dependency from v2 to v3 in macro/util crates.
  • Aligned syn versions across multiple internal crates.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
src/hyperlight_guest_macro/Cargo.toml Updates syn dependency major version for guest macro crate.
src/hyperlight_component_util/Cargo.toml Updates syn dependency major/version pin used by component utility crate.
src/hyperlight_component_macro/Cargo.toml Updates syn dependency major/version pin used by component macro crate.

@dependabot-pr-auto-approver dependabot-pr-auto-approver Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically approved by dependabot auto-approve workflow

@dependabot-pr-auto-approver
dependabot-pr-auto-approver Bot enabled auto-merge (squash) July 20, 2026 05:14
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.119 to 3.0.1.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.119...3.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
dependabot-pr-auto-approver Bot and others added 3 commits July 20, 2026 17:07
Automatically updated by dependabot-update-guest-locks workflow.
Triggered by: chore(deps): bump syn from 2.0.119 to 3.0.1

Signed-off-by: dependabot-pr-auto-approver[bot] <207571483+dependabot-pr-auto-approver[bot]@users.noreply.github.com>
Update prettyplease to use syn 3 and ignore the new ForeignItemFn modifiers field.

Copilot-Session: a3f12615-b5cf-41ac-a65a-d24cfdb27f97
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Explicitly ignore the syn 3 ForeignItemFn modifiers field.

Copilot-Session: a3f12615-b5cf-41ac-a65a-d24cfdb27f97
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
@dependabot-pr-auto-approver
dependabot-pr-auto-approver Bot merged commit 37913a1 into main Jul 21, 2026
46 checks passed
@dependabot-pr-auto-approver
dependabot-pr-auto-approver Bot deleted the dependabot/cargo/syn-3.0.1 branch July 21, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/dependencies For PRs that update dependencies or related components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants