Skip to content

Commit

Permalink
Fix Parser size assertion on s390x.
Browse files Browse the repository at this point in the history
For some reason the memory layout is different on s390x.
  • Loading branch information
nnethercote committed Dec 19, 2024
1 parent df56c50 commit 0f7dccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_parse/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0f7dccf

Please sign in to comment.