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

Address Rust nightly compiler warnings #3292

Merged
merged 4 commits into from
Sep 23, 2024
Merged

Address Rust nightly compiler warnings #3292

merged 4 commits into from
Sep 23, 2024

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Sep 23, 2024

Nightly Rust just started lighting up the improper_ctypes warning a "type is infinitely recursive" but it seems to be a false positive.

You can see examples in the build failure here:

https://github.com/microsoft/windows-rs/actions/runs/10997420809/job/30532908394?pr=3291

And here:

https://github.com/microsoft/windows-rs/actions/runs/10997420795/job/30532923854?pr=3291

Workaround for rust-lang/rust#130757

@kennykerr
Copy link
Collaborator Author

@ChrisDenton do you happen to know if this is a compiler bug? I searched the Rust repo but I couldn't find an issue related to this.

@kennykerr
Copy link
Collaborator Author

This update also addresses another unrelated new warning about a shared reference to mutable static in a test. 9863c4d

@kennykerr kennykerr changed the title Allow improper_ctypes warnings Address new Rust nightly compiler warnings Sep 23, 2024
@kennykerr kennykerr changed the title Address new Rust nightly compiler warnings Address Rust nightly compiler warnings Sep 23, 2024
@ChrisDenton
Copy link
Collaborator

Seems like a totally spurious warning. I've opened an issue. It's being looked into.

@kennykerr
Copy link
Collaborator Author

Thanks I left a comment to remove these when that issue is resolved.

@kennykerr kennykerr merged commit bca9a76 into master Sep 23, 2024
81 checks passed
@kennykerr kennykerr deleted the improper_ctypes branch September 23, 2024 17:37
@ChrisDenton
Copy link
Collaborator

A revert has been merged so it should be fixed in the next nightly (aka tomorrow).

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.

2 participants