about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-12-19 20:06:44 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-12-19 20:06:44 +1100
commit0f7dccf784dd46156281dff11f0be31d43f9bbcd (patch)
treeb1995df32dc343b215f4c0b4df22adb552368e74 /compiler/rustc_parse/src
parentdf56c50cee0edad5ecc6e4535d361505407b989a (diff)
downloadrust-0f7dccf784dd46156281dff11f0be31d43f9bbcd.tar.gz
rust-0f7dccf784dd46156281dff11f0be31d43f9bbcd.zip
Fix `Parser` size assertion on s390x.
For some reason the memory layout is different on s390x.
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs
index 43328c48015..2637ea268c8 100644
--- a/compiler/rustc_parse/src/parser/mod.rs
+++ b/compiler/rustc_parse/src/parser/mod.rs
@@ -188,9 +188,9 @@ pub struct Parser<'a> {
     recovery: Recovery,
 }
 
-// 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(target_pointer_width = "64")]
+// 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")))]
 rustc_data_structures::static_assert_size!(Parser<'_>, 288);
 
 /// Stores span information about a closure.