fix(ctest): cast fn pointers as *const ()#4831
Merged
JohnTitor merged 1 commit intorust-lang:mainfrom Nov 17, 2025
Merged
Conversation
04fcf11 to
36a2328
Compare
Member
|
This warning looks to be on by default in rust 1.93.0. Anything that can be done to help with a ctest release? |
Contributor
|
Are you using the latest ctest alpha? It should be fixed there. As far as an actual minor release, I don't think there's any reason not to do that at this point. I'll reach out to the author of the new implementation. |
Member
|
We're not currently pointed at the alpha, we can certainly do that in the short term. I think having things as a stable minor release is a bit of a happier path (since cargo can pick them up automatically) |
Contributor
|
It will be a minor release but Cargo won't auto-upgrade 0.4.x to 0.5.0, that's semver-incompatible. You'll have to do some API changes to upgrade to the alpha and the future 0.5. |
Member
|
👍 thanks much! Cheers |
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.
Description
This fixes a newly added lint warning:
Sources
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI