diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-09-12 20:02:12 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-12 20:02:12 +1000 |
| commit | 7429420eefa30fbcc935e420f459a7c26b2d05df (patch) | |
| tree | ae5bb575a3a203786a19dce1837ffee7e10c9c4a /library/std/src/sys/thread/unix.rs | |
| parent | 40520c635728968693f59808d48ee6baf17dfaac (diff) | |
| parent | 4c849c73a4b49ffe3a96261d95b65df1421befd9 (diff) | |
| download | rust-7429420eefa30fbcc935e420f459a7c26b2d05df.tar.gz rust-7429420eefa30fbcc935e420f459a7c26b2d05df.zip | |
Rollup merge of #146323 - h3fang:issue-146230-fix, r=Amanieu
check before test for hardware capabilites in bits 32~63 of usize This commit tries to fix https://github.com/rust-lang/rust/issues/146230. `std::arch::is_aarch64_feature_detected` panics on aarch64 ILP32 targets. After some digging, the real problem is https://github.com/rust-lang/rust/blob/91edc3ebccc4daa46c20a93f4709862376da1fdd/library/std_detect/src/detect/os/linux/aarch64.rs#L210-L241 checks bits 32~63 of usize unconditionally on normal aarch64 LP64 target and aarch64 ILP32 target. Here I propose to move these to a block guarded by `#[cfg(target_pointer_width="64")]`. See rust-lang/rust#146230 for more detailed analysis. r? ```@Amanieu```
Diffstat (limited to 'library/std/src/sys/thread/unix.rs')
0 files changed, 0 insertions, 0 deletions
