rust-lang / libc

Raw bindings to platform APIs for Rust
https://docs.rs/libc
Apache License 2.0
2.1k stars 1.04k forks source link

[0.2] Remove array size hacks for Rust < 1.47 #4062

Closed tgross35 closed 1 week ago

tgross35 commented 1 week ago

Rust >= 1.47 supports traits for arrays of arbitrary size, so remove the various hacks using nested arrays when the native platform definition uses a single array.

Cherry picked from https://github.com/rust-lang/libc/pull/2845

rustbot commented 1 week ago

r? @JohnTitor

rustbot has assigned @JohnTitor. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer