diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-03-09 09:05:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-09 09:05:24 +0000 |
| commit | bb9542b0161e950f22f9a9003bb4b4a3ff6fd3c6 (patch) | |
| tree | d3d10e415f5ae6add9734e0379dc24fd493d77c0 /src | |
| parent | a3154427299d49e9d8ce6e8d740fb8ed6032ad8e (diff) | |
| parent | 95e096d6237298f523e5566be87684d208f7d128 (diff) | |
| download | rust-bb9542b0161e950f22f9a9003bb4b4a3ff6fd3c6.tar.gz rust-bb9542b0161e950f22f9a9003bb4b4a3ff6fd3c6.zip | |
Rollup merge of #82841 - hvdijk:x32, r=joshtriplett
Change x64 size checks to not apply to x32. Rust contains various size checks conditional on target_arch = "x86_64", but these checks were never intended to apply to x86_64-unknown-linux-gnux32. Add target_pointer_width = "64" to the conditions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/clean/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index a94ee918c24..2636467196a 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -93,7 +93,7 @@ crate struct Item { } // `Item` is used a lot. Make sure it doesn't unintentionally get bigger. -#[cfg(target_arch = "x86_64")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] rustc_data_structures::static_assert_size!(Item, 48); impl fmt::Debug for Item { |
