1
Fork 0

Assert size of rustc_parse_format::Piece<'_>

This commit is contained in:
Maybe Waffle 2022-12-08 11:20:01 +00:00
parent 78060cb6de
commit c44c82de2b
3 changed files with 6 additions and 0 deletions

View file

@ -908,5 +908,9 @@ fn find_skips_from_snippet(
(skips, true)
}
// Assert a reasonable size for `Piece`
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
rustc_data_structures::static_assert_size!(Piece<'_>, 16);
#[cfg(test)]
mod tests;