about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorHarald van Dijk <harald@gigawatt.nl>2021-09-05 16:42:36 +0100
committerHarald van Dijk <harald@gigawatt.nl>2021-09-05 16:42:36 +0100
commitcd75af25e036301d7971f6f302cf6a5593b0a6b5 (patch)
tree437af252b6d4a7084ef9ce2196107712cc3158a3 /src/librustdoc/html/render
parentf7c00dc4099961e4b0f04c3278d21316c96172fe (diff)
downloadrust-cd75af25e036301d7971f6f302cf6a5593b0a6b5.tar.gz
rust-cd75af25e036301d7971f6f302cf6a5593b0a6b5.zip
Change more x64 size checks to not apply to x32.
Commit 95e096d6 changed a bunch of size checks already, but more have
been added, so this fixes the new ones the same way: the various size
checks that are conditional on target_arch = "x86_64" were not intended
to apply to x86_64-unknown-linux-gnux32, so add
target_pointer_width = "64" to the conditions.
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs
index 733bedfdde9..34f9c0a8187 100644
--- a/src/librustdoc/html/render/context.rs
+++ b/src/librustdoc/html/render/context.rs
@@ -69,7 +69,7 @@ crate struct Context<'tcx> {
 }
 
 // `Context` is cloned a lot, so we don't want the size to grow unexpectedly.
-#[cfg(target_arch = "x86_64")]
+#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
 rustc_data_structures::static_assert_size!(Context<'_>, 104);
 
 /// Shared mutable state used in [`Context`] and elsewhere.