diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-16 17:02:20 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-18 15:36:25 +1000 |
| commit | 0d97669a171d3d5c9c9c2d3437421d2d35d9bbb5 (patch) | |
| tree | bfd7456fa92e7c81dd637db8a2c163184a88e38e /src/librustdoc/html/render | |
| parent | 1cec373f65eb76e8e4b4d1847213cf3ec6c292b6 (diff) | |
| download | rust-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.rs | 4 |
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> { |
