about summary refs log tree commit diff
path: root/src/librustdoc/html/render/context.rs
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-05-17 18:23:43 -0700
committerDan Gohman <dev@sunfishcode.online>2022-06-23 13:11:24 -0700
commitddeb936c6d797d47ec8652c885c8a2cceba8386f (patch)
treef4586e3ecebd0d8ec0e062a1f03efc22aba23427 /src/librustdoc/html/render/context.rs
parent516a67aad9a2d962917724138654e8f14a0fac4c (diff)
downloadrust-ddeb936c6d797d47ec8652c885c8a2cceba8386f.tar.gz
rust-ddeb936c6d797d47ec8652c885c8a2cceba8386f.zip
Don't test the rustdoc rendering context size on Windows.
This assert is just making sure the size of `Context` doens't grow
unexpectedly, and it's already not being checked on every platform.

`PathBuf` now has a different size on Windows, so adjust this to
avoid checking the size on Windows.
Diffstat (limited to 'src/librustdoc/html/render/context.rs')
-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 bfdc44c7e45..367ffd4e883 100644
--- a/src/librustdoc/html/render/context.rs
+++ b/src/librustdoc/html/render/context.rs
@@ -71,7 +71,7 @@ pub(crate) struct Context<'tcx> {
 }
 
 // `Context` is cloned a lot, so we don't want the size to grow unexpectedly.
-#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
+#[cfg(all(not(windows), target_arch = "x86_64", target_pointer_width = "64"))]
 rustc_data_structures::static_assert_size!(Context<'_>, 128);
 
 /// Shared mutable state used in [`Context`] and elsewhere.