Check x86_64 size assertions on aarch64, too

This makes it easier for contributors on aarch64 workstations (e.g. Macs) to
notice when these assertions have been violated.
This commit is contained in:
Zalathar 2024-04-03 12:55:40 +11:00
parent b688d53a17
commit 2d47cd77ac
33 changed files with 36 additions and 36 deletions

View file

@ -30,7 +30,7 @@ use unescape_error_reporting::{emit_unescape_error, escaped_char};
//
// This assertion is in this crate, rather than in `rustc_lexer`, because that
// crate cannot depend on `rustc_data_structures`.
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
#[cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_pointer_width = "64"))]
rustc_data_structures::static_assert_size!(rustc_lexer::Token, 12);
#[derive(Clone, Debug)]