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

Backport patches to 0.38 #1235

Merged
merged 7 commits into from
Dec 8, 2024
Merged

Backport patches to 0.38 #1235

merged 7 commits into from
Dec 8, 2024

Conversation

sunfishcode
Copy link
Member

No description provided.

SUPERCILEX and others added 7 commits December 3, 2024 18:03
* Use MaybeUninit in DecInt

* Fix DecInt::new panicking on integers greater than 64 bits and optimize out any panics in DecInt::new

* Add tests so people messing with DecInt can catch UB with miri

* Use new itoa

---------

Co-authored-by: Alex Saveau <[email protected]>
Linux added fields to `xdp_umem_reg`, so disable rustix's sizeof check
for now, to unbreak the `test_sizes` test.
The code is compatible with version 0.52.0 and version 0.59.0.

Additionally, bump errno to 0.3.10 to get this requirement on
errno as well.
Remaining two failing tests need more investigation:
    unix::test_unix_msg_with_combo
    unix_alloc::test_unix_msg_with_combo
This is safe since all methods that mutate the internal state require
a &mut self. It also makes behavior consistent with the linux_raw
backend (whose `fs::Dir` is Sync+Send).

Fixes: #1230.
Even when Solaris libc doesn't define LOCK_SH, LOCK_EX, LOCK_NB and LOCK_UN (which are flock() related).
@sunfishcode sunfishcode merged commit 52f1af8 into 0.38 Dec 8, 2024
45 checks passed
@sunfishcode sunfishcode deleted the 0.38-updates branch December 8, 2024 00: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.

5 participants