mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Assert size of rustc_parse_format::Piece<'_>
This commit is contained in:
parent
78060cb6de
commit
c44c82de2b
@ -4148,6 +4148,7 @@ dependencies = [
|
||||
name = "rustc_parse_format"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"rustc_data_structures",
|
||||
"rustc_lexer",
|
||||
]
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user