Add a definition of max_align_t to nto by darkwisebear · Pull Request #4927 · rust-lang/libc (original) (raw)
The definition of this type is a bit tricky for nto for multiple reasons:
- The C definition is different from the C++ definition in some versions of the QNX SDK.
- It uses long double, which does not exist inside libc.
- The definition on C uses alignment modifiers per field, which aren't supported in Rust. However, since they just reuse the field type, they're actually redundant so that we can safely skip them.
Merged via the queue into rust-lang:main with commit 64f2ae4
50 of 51 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request
The definition of this type is a bit tricky for nto for multiple reasons:
- The C definition is different from the C++ definition in some versions of the QNX SDK.
- It uses long double, which does not exist inside libc.
- The definition on C uses alignment modifiers per field, which aren't supported in Rust. However, since they just reuse the field type, they're actually redundant so that we can safely skip them.
(backport <rust-lang#4927>) (cherry picked from commit 64f2ae4)
github-merge-queue Bot pushed a commit that referenced this pull request
The definition of this type is a bit tricky for nto for multiple reasons:
- The C definition is different from the C++ definition in some versions of the QNX SDK.
- It uses long double, which does not exist inside libc.
- The definition on C uses alignment modifiers per field, which aren't supported in Rust. However, since they just reuse the field type, they're actually redundant so that we can safely skip them.
(backport <#4927>) (cherry picked from commit 64f2ae4)
tgross35 added stable-applied
This PR has been cherry-picked to libc's stable release branch
and removed stable-nominated
This PR should be considered for cherry-pick to libc's stable release branch
labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})