Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update syn to 2.0 #3318

Merged
merged 9 commits into from
May 10, 2023
Merged

Update syn to 2.0 #3318

merged 9 commits into from
May 10, 2023

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Apr 13, 2023

This updates syn to 2.0 for all internal ICU4X crates/utils.

This does not update Diplomat, that is WIP in rust-diplomat/diplomat#324. I might try to land that first so I can include it as a git dep update here (before doing a proper release)

Should only merge after the 1.2 release (resulting in patch releases for the dependencies)

@Manishearth Manishearth marked this pull request as ready for review May 1, 2023 22:04
@Manishearth Manishearth requested review from robertbastian and a team as code owners May 1, 2023 22:04
@Manishearth
Copy link
Member Author

Manishearth commented May 1, 2023

Ready for review. I do not think it is necessary to do patch releases with this; I am posting this PR now precisely because I think the time for patch releases is (mostly) past.

@Manishearth
Copy link
Member Author

Hm, displaydoc needs a syn update too. Might do this later.

@Manishearth
Copy link
Member Author

ah, there's an open PR: yaahc/displaydoc#42

sffc
sffc previously requested changes May 3, 2023
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

Please re-request review once CI is green

@Manishearth Manishearth requested a review from sffc May 3, 2023 23:30
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • Cargo.lock is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@Manishearth
Copy link
Member Author

(removed an unnecessary lockfile change that was a separate commit)

@Manishearth Manishearth requested a review from sffc May 8, 2023 17:23
provider/macros/src/lib.rs Show resolved Hide resolved
provider/macros/src/lib.rs Outdated Show resolved Hide resolved
provider/macros/src/lib.rs Outdated Show resolved Hide resolved
provider/macros/src/lib.rs Show resolved Hide resolved
provider/macros/src/lib.rs Show resolved Hide resolved
provider/macros/src/lib.rs Outdated Show resolved Hide resolved
provider/macros/src/lib.rs Show resolved Hide resolved
fn parse(input: ParseStream<'_>) -> parse::Result<Self> {
let path: Path = input.parse()?;

fn at_most_one_option<T>(
Copy link
Member

Choose a reason for hiding this comment

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

Observation: it seems the old code didn't actually care about this; it just took whichever option was the last one parsed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I think it's better to have a little bit more validation here

Copy link
Member

Choose a reason for hiding this comment

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

Technically it's a breaking change but 🤷

provider/macros/src/lib.rs Show resolved Hide resolved
provider/macros/src/tests.rs Show resolved Hide resolved
@Manishearth Manishearth requested a review from sffc May 10, 2023 18:06
@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@Manishearth
Copy link
Member Author

kicking CI, since it's failing without logs and the tests pass locally. Force push did nothing but update commit date of the last commit

fn parse(input: ParseStream<'_>) -> parse::Result<Self> {
let path: Path = input.parse()?;

fn at_most_one_option<T>(
Copy link
Member

Choose a reason for hiding this comment

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

Technically it's a breaking change but 🤷

@Manishearth Manishearth merged commit 14e9a3a into unicode-org:main May 10, 2023
@Manishearth Manishearth deleted the unoriginal-syn branch May 10, 2023 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants