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

fix(lib): use precise capturing on 1.82+ #435

Merged
merged 8 commits into from
Nov 16, 2024

Conversation

indietyp
Copy link
Contributor

Fixes #434 by conditionally adding + use<'s> to the implementation of the callback, but only if on 1.82+

Additionally it adds tests for the MSRV and 1.82 to the CI.

Copy link
Collaborator

@jeertmans jeertmans left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for being so quick!

Please take a look at my comments.

.github/workflows/rustlib.yml Outdated Show resolved Hide resolved
logos-codegen/build.rs Outdated Show resolved Hide resolved
@jeertmans jeertmans added bug Something isn't working continuous integration GitHub workflows and others labels Nov 12, 2024
@jeertmans
Copy link
Collaborator

As indicated by the CI, I think the new build dependency requires us to bump the MSRV to 1.74

@indietyp
Copy link
Contributor Author

indietyp commented Nov 13, 2024

I don't think this is actually caused by the new build-dependency (it only has semver as a dependency) I think the issue exists because the toolchain was never before tested (see the {{matrix.rust}} addition). I think this might be a problem with rstest.

@indietyp
Copy link
Contributor Author

actually correction, looking at the output of cargo tree --workspace the issue is logos-cli:

predicates = "2.1.1"

@jeertmans
Copy link
Collaborator

I don't think this is actually caused by the new build-dependency (it only has semver as a dependency) I think the issue exists because the toolchain was never before tested (see the {{matrix.rust}} addition). I think this might be a problem with rstest.

I see, but I don't get why the msrv_check workflow didn't catch this before...

actually correction, looking at the output of cargo tree --workspace the issue is logos-cli:

predicates = "2.1.1"

You are right, I was too quick on my conclusions :-)

@jeertmans jeertmans changed the title use precise capturing on 1.82+ fix(lib): use precise capturing on 1.82+ Nov 13, 2024
@indietyp
Copy link
Contributor Author

We could either raise the MSRV to 1.74, raise the CI to only test 1.74 or downgrade predicates to something that supports 1.70

@jeertmans
Copy link
Collaborator

We could either raise the MSRV to 1.74, raise the CI to only test 1.74 or downgrade predicates to something that supports 1.70

I think the issue is actually the CI doesn't use --locked, so this is probably why the issue wasn't discovered before.

For the sake of simplicity, we can just bump to 1.74 here.

@indietyp indietyp requested a review from jeertmans November 13, 2024 11:26
Cargo.toml Outdated
@@ -30,7 +33,7 @@ rust-version.workspace = true
version.workspace = true

[package.metadata]
msrv = "1.70.0" # Needed to duplicate, because cargo-msrv does not support workspace
msrv = "1.70.0" # Needed to duplicate, because cargo-msrv does not support workspace
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you need to also update this field

@indietyp indietyp requested a review from jeertmans November 14, 2024 09:34
@jeertmans
Copy link
Collaborator

Looks all good @indietyp, thanks!

@jeertmans jeertmans merged commit 1200df4 into maciejhirsz:master Nov 16, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working continuous integration GitHub workflows and others
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest nightly on edition 2024 results in compilation failure
2 participants