diff options
| author | Ben Kimock <kimockb@gmail.com> | 2025-01-25 06:05:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-25 06:05:36 +0000 |
| commit | 57eabac8351013154cef7bac0f27759094ff5a96 (patch) | |
| tree | 6a131fb160b1ad071bb1a0c30add05ae64b48ebd /compiler/rustc_parse/src/parser | |
| parent | f8f5c9d64297f34a260abd882f752153e85102f3 (diff) | |
| parent | c9502079ed12d35de139416cd8e67e43b0b5bfd8 (diff) | |
| download | rust-57eabac8351013154cef7bac0f27759094ff5a96.tar.gz rust-57eabac8351013154cef7bac0f27759094ff5a96.zip | |
Merge pull request #4150 from rust-lang/rustup-2025-01-25
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 10756be6afb..25d8eb9b453 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -189,8 +189,9 @@ pub struct Parser<'a> { } // This type is used a lot, e.g. it's cloned when matching many declarative macro rules with -// nonterminals. Make sure it doesn't unintentionally get bigger. -#[cfg(all(target_pointer_width = "64", not(target_arch = "s390x")))] +// nonterminals. Make sure it doesn't unintentionally get bigger. We only check a few arches +// though, because `TokenTypeSet(u128)` alignment varies on others, changing the total size. +#[cfg(all(target_pointer_width = "64", any(target_arch = "aarch64", target_arch = "x86_64")))] rustc_data_structures::static_assert_size!(Parser<'_>, 288); /// Stores span information about a closure. |
