Closed ian-h-chamberlain closed 2 months ago
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.
Opened https://github.com/rust-lang/rust/pull/124649 to fix the latest nightly issues.
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 thelibc
types. This in combination with #181 should help us catch any weird differences between thelibc
definitions andlibctru
as well.