Bump syn from 2.0.118 to 3.0.3 in /autorust - #818
Open
John Batty (johnbatty) wants to merge 2 commits into
Open
Conversation
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.118 to 3.0.3. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](dtolnay/syn@2.0.118...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>
Adapt codegen.rs to syn 3.0 breaking changes so the generator compiles with syn 3: TraitBoundModifier enum replaced by TraitBoundModifiers struct plus a separate `maybe` field, mandatory `attrs` on Type variants, and removal of the From<...> for Type impls (use explicit variants). Generated crate output is byte-identical. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
synfrom 2.0.118 to 3.0.3 inautorust/codegen.This supersedes #813: the plain dependabot bump does not compile, because syn 3.0 is a major release with breaking changes to the AST types that
autorust/codegenuses directly. This PR includes the version bump plus the source migration needed to build.syn 3.0 API migration (
autorust/codegen/src/codegen.rs)TraitBoundModifierenum replaced by the newTraitBoundModifiersstruct;TraitBound.modifiersplit intomodifiersplus a separatemaybe: Option<Token![?]>field.attrsis now a mandatory field on everyTypevariant — added to theTypeReference,TypeImplTrait, andTypePathliterals.From<...> for Typeimpls were removed — replacedType::from(...)with the explicitType::Path(...)/Type::Reference(...)variants.Verification
cargo build --release(autorust) — passes./build.sh(patch → generate → compile crate) — passesazure_devops_rust_api/srcoutput is byte-identical to the committed source (the upgrade changes nothing about generated code)cargo clippy --all-features -- --deny warnings— cleancargo clippy --all-features --examples -- --deny warnings— cleancargo test -p autorust_codegen --lib— 73 passedNote:
synis a build-time-only dependency of the code generator and is not part of the publishedazure_devops_rust_apicrate's dependency tree.🤖 Generated with Claude Code