Skip to content

Commit 0f7dccf

Browse files
committed
Fix Parser size assertion on s390x.
For some reason the memory layout is different on s390x.
1 parent df56c50 commit 0f7dccf

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+3
-3
lines changed

compiler/rustc_parse/src/parser/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ pub struct Parser<'a> {
188188
recovery: Recovery,
189189
}
190190

191-
// This type is used a lot, e.g. it's cloned when matching many declarative macro rules with nonterminals. Make sure
192-
// it doesn't unintentionally get bigger.
193-
#[cfg(target_pointer_width = "64")]
191+
// This type is used a lot, e.g. it's cloned when matching many declarative macro rules with
192+
// nonterminals. Make sure it doesn't unintentionally get bigger.
193+
#[cfg(all(target_pointer_width = "64", not(target_arch = "s390x")))]
194194
rustc_data_structures::static_assert_size!(Parser<'_>, 288);
195195

196196
/// Stores span information about a closure.

0 commit comments

Comments
 (0)