Skip to content

Commit ddeb936

Browse files
committed
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.
1 parent 516a67a commit ddeb936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub(crate) struct Context<'tcx> {
7171
}
7272

7373
// `Context` is cloned a lot, so we don't want the size to grow unexpectedly.
74-
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
74+
#[cfg(all(not(windows), target_arch = "x86_64", target_pointer_width = "64"))]
7575
rustc_data_structures::static_assert_size!(Context<'_>, 128);
7676

7777
/// Shared mutable state used in [`Context`] and elsewhere.

0 commit comments

Comments
 (0)