Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

tgross35
Copy link
Contributor

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 #2845

@rustbot
Copy link
Collaborator

rustbot commented Nov 16, 2024

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

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.
@tgross35 tgross35 changed the title Remove array size hacks for Rust < 1.47 [0.2] Remove array size hacks for Rust < 1.47 Nov 16, 2024
@tgross35 tgross35 added this pull request to the merge queue Nov 16, 2024
Merged via the queue into rust-lang:libc-0.2 with commit 805ab65 Nov 16, 2024
44 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
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.

(apply <rust-lang#4062> to `main`)
(cherry picked from commit 27ee6fe)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
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.

(apply <rust-lang#4062> to `main`)
(cherry picked from commit 27ee6fe)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
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.

(apply <rust-lang#4062> to `main`)
(cherry picked from commit 27ee6fe)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Nov 17, 2024
@tgross35 tgross35 added the main-applied This PR was merged against libc-0.2 and main has since been updated to include it label Nov 17, 2024
@tgross35 tgross35 deleted the array-size-hacks branch November 17, 2024 07:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
main-applied This PR was merged against libc-0.2 and main has since been updated to include it O-android O-dragonfly O-gnu O-linux O-macos O-musl O-unix S-waiting-on-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants