Skip to content

Update syn requirement from 2.0.0 to 3.0.3#938

Merged
CryZe merged 2 commits into
masterfrom
dependabot/cargo/syn-3.0.3
Jul 22, 2026
Merged

Update syn requirement from 2.0.0 to 3.0.3#938
CryZe merged 2 commits into
masterfrom
dependabot/cargo/syn-3.0.3

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Updates the requirements on syn to permit the latest version.

Release notes

Sourced from syn's releases.

3.0.3

  • Documentation improvements
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

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [syn](https://github.com/dtolnay/syn) to permit the latest version.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](dtolnay/syn@2.0.0...3.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies A dependency needs to be updated. rust Pull requests that update Rust code labels Jul 22, 2026
@CryZe

CryZe commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

@copilot Can you fix the code?

error[E0599]: no method named is_some found for enum PointerMutability in the current scope
2026-07-22T07:56:27.1642566Z --> capi/bind_gen/src/main.rs:101:41
2026-07-22T07:56:27.1642919Z |
2026-07-22T07:56:27.1643267Z 101 | ty.kind = if ptr.mutability.is_some() {
2026-07-22T07:56:27.1643747Z | ^^^^^^^ method not found in PointerMutability

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown

@copilot Can you fix the code?

error[E0599]: no method named is_some found for enum PointerMutability in the current scope...

Fixed in the latest commit. In syn 3.x, TypePtr::mutability changed from Option<Token![mut]> to a PointerMutability enum with Const and Mut variants, so is_some() no longer applies. Replaced with matches!(ptr.mutability, syn::PointerMutability::Mut(_)).

Copilot finished work on behalf of CryZe July 22, 2026 08:02
Copilot AI requested a review from CryZe July 22, 2026 08:02
@CryZe
CryZe enabled auto-merge (squash) July 22, 2026 08:06
@CryZe
CryZe merged commit 5278e78 into master Jul 22, 2026
70 checks passed
@CryZe
CryZe deleted the dependabot/cargo/syn-3.0.3 branch July 22, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies A dependency needs to be updated. rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants