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

[0.2] Backports #4006

Merged
merged 11 commits into from
Nov 7, 2024
Merged

[0.2] Backports #4006

merged 11 commits into from
Nov 7, 2024

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Nov 6, 2024

@rustbot
Copy link
Collaborator

rustbot commented Nov 6, 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

@tgross35 tgross35 force-pushed the backport-spinach branch 3 times, most recently from 3f5b9fd to 4deac8e Compare November 6, 2024 22:16
@tgross35 tgross35 enabled auto-merge November 6, 2024 22:50
@tgross35 tgross35 force-pushed the backport-spinach branch 6 times, most recently from 73a04f0 to 49e82b6 Compare November 7, 2024 06:44
@tgross35
Copy link
Contributor Author

tgross35 commented Nov 7, 2024

Included #4019 so this can merge without conflict.

nathaniel-bennett and others added 11 commits November 7, 2024 01:17
[ gate ppc under `cfg(libc_align)` and adjust `Debug` implementations to
  meet msrv - Trevor ]
(backport <rust-lang#3848>)
(cherry picked from commit 2053d5b)
[ change `core` to `::core` and move ucontext_t to s_no_extra_traits for
  backport - Trevor ]
(backport <rust-lang#3894>)
(cherry picked from commit 707d32c)
The definition added in b811b70 was
technically wrong even though the type size was correct.  It was
probably defined this way because earlier versions of Rust had
difficulty with fixed-size arrays of size greater than 32.

This change is necessary for CI to pass on x86 FreeBSD.

https://github.com/freebsd/freebsd-src/blob/main/sys/x86/include/ucontext.h

(backport <rust-lang#3948>)
(cherry picked from commit ad2d864)
Enable this backport by just dropping support for FreeBSD mcontext_t
without `libc_align`, i.e. with Rust < 1.25 (2018). This is sufficiently
niche that it is not worth adding a new `align` module.
It's always had the wrong size, but apparently never been tested on
32-bit FreeBSD.

In addition to fixing its size, it ought to be moved info freebsd/mod.rs
.  Otherwise it's pretty much inaccessible to everyone.

https://github.com/freebsd/freebsd-src/blob/main/sys/sys/_domainset.h

(backport <rust-lang#3948>)
(cherry picked from commit 19d213d)
@tgross35 tgross35 added this pull request to the merge queue Nov 7, 2024
Merged via the queue into rust-lang:libc-0.2 with commit d435e9b Nov 7, 2024
54 checks passed
@tgross35 tgross35 deleted the backport-spinach branch November 17, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants