about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-04-16 17:02:20 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-04-18 15:36:25 +1000
commit0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5 (patch)
treebfd7456fa92e7c81dd637db8a2c163184a88e38e /src/librustdoc/html/render
parent1cec373f65eb76e8e4b4d1847213cf3ec6c292b6 (diff)
downloadrust-0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5.tar.gz
rust-0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5.zip
Simplify `static_assert_size`s.
We want to run them on all 64-bit platforms.
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/context.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs
index 4cab2d64257..db1119eca1d 100644
--- a/src/librustdoc/html/render/context.rs
+++ b/src/librustdoc/html/render/context.rs
@@ -78,8 +78,10 @@ pub(crate) struct Context<'tcx> {
 }
 
 // `Context` is cloned a lot, so we don't want the size to grow unexpectedly.
-#[cfg(all(not(windows), target_arch = "x86_64", target_pointer_width = "64"))]
+#[cfg(all(not(windows), target_pointer_width = "64"))]
 rustc_data_structures::static_assert_size!(Context<'_>, 160);
+#[cfg(all(windows, target_pointer_width = "64"))]
+rustc_data_structures::static_assert_size!(Context<'_>, 168);
 
 /// Shared mutable state used in [`Context`] and elsewhere.
 pub(crate) struct SharedContext<'tcx> {