rust/compiler/rustc_parse/src/parser
Jacob Pratt 4332498a6d
Rollup merge of #123401 - Zalathar:assert-size-aarch64, r=fmease
Check `x86_64` size assertions on `aarch64`, too

(Context: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Checking.20size.20assertions.20on.20aarch64.3F)

Currently the compiler has around 30 sets of `static_assert_size!` for various size-critical data structures (e.g. various IR nodes), guarded by `#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]`.

(Presumably this cfg avoids having to maintain separate size values for 32-bit targets and unusual 64-bit targets. Apparently it may have been necessary before the i128/u128 alignment changes, too.)

This is slightly incovenient for people on aarch64 workstations (e.g. Macs), because the assertions normally aren't checked until we push to a PR. So this PR adds `aarch64` to the `#[cfg(..)]` guarding all of those assertions in the compiler.

---

Implemented with a simple find/replace. Verified by manually inspecting each `static_assert_size!` in `compiler/`, and checking that either the replacement succeeded, or adding aarch64 wouldn't have been appropriate.
2024-04-03 20:17:06 -04:00
..
attr.rs Rewrite parse_meta_item. 2024-03-21 10:16:09 +11:00
attr_wrapper.rs Check x86_64 size assertions on aarch64, too 2024-04-03 16:53:03 +11:00
diagnostics.rs Rename AddToDiagnostic as Subdiagnostic. 2024-03-11 10:04:49 +11:00
expr.rs Don't ICE for postfix match after as 2024-04-02 18:31:42 -04:00
generics.rs Make unexpected always "return" PResult<()> & add unexpected_any 2024-03-15 11:36:21 +00:00
item.rs Use maybe_whole! to streamline parse_item_common. 2024-03-21 10:18:28 +11:00
mod.rs Check x86_64 size assertions on aarch64, too 2024-04-03 16:53:03 +11:00
nonterminal.rs Streamline NamedMatch. 2024-03-21 10:18:34 +11:00
pat.rs Feature gate 2024-03-27 11:20:28 -04:00
path.rs Suggest assoc ty bound on lifetime in eq constraint 2024-03-23 00:17:30 +01:00
stmt.rs Use better variable names in some maybe_whole! calls. 2024-03-21 10:18:34 +11:00
ty.rs Use better variable names in some maybe_whole! calls. 2024-03-21 10:18:34 +11:00