Assert size of rustc_parse_format::Piece<'_>
This commit is contained in:
parent
78060cb6de
commit
c44c82de2b
3 changed files with 6 additions and 0 deletions
|
@ -5,3 +5,4 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
rustc_lexer = { path = "../rustc_lexer" }
|
||||
rustc_data_structures = { path = "../rustc_data_structures" }
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue