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

Catch conflicts with libc and stop generating them #186

Merged
merged 3 commits into from
May 4, 2024

Conversation

ian-h-chamberlain
Copy link
Member

Basically, we can use a builtin lint to catch the scenario where we are accidentally re-generating a different type from libc.

When I tried it out using a little bit of mod and re-exporting, I found a number of cases where we were generating the same types, which might have led to some incompatibilities if we had e.g. layout mismatches from the libc types. This in combination with #181 should help us catch any weird differences between the libc definitions and libctru as well.

@Meziu
Copy link
Member

Meziu commented May 3, 2024

Great find! This is going to help with the issues reported in #174, and give a bit of stability to our building suite.

Gotta love those regressions in the latest nightly, I will push a fix to the Rust tree.

@Meziu
Copy link
Member

Meziu commented May 3, 2024

Opened rust-lang/rust#124649 to fix the latest nightly issues.

@ian-h-chamberlain ian-h-chamberlain merged commit 0cddff4 into master May 4, 2024
4 checks passed
@ian-h-chamberlain ian-h-chamberlain deleted the feat/remove-libc-conflicts branch May 4, 2024 19:58
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