diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-07-29 16:16:45 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-29 16:16:45 +1000 |
| commit | e08a30856145632de973aea101d67bd288d9eaa8 (patch) | |
| tree | 386ba4e884a43194a73036d86c5c447d0b4c4631 /compiler/rustc_codegen_gcc | |
| parent | f9c114ef90cd22028d0c5d1976ecae8b9afa92b4 (diff) | |
| parent | 72927f6eb74550e24f0fdeecd5f21201fd970d12 (diff) | |
| download | rust-e08a30856145632de973aea101d67bd288d9eaa8.tar.gz rust-e08a30856145632de973aea101d67bd288d9eaa8.zip | |
Rollup merge of #144578 - FractalFir:m68k_fix, r=compiler-errors
Ensure correct aligement of rustc_hir::Lifetime on platforms with lower default alignments. The compiler relies on `hir::Lifetime` being aligned to at least 4 bytes(for the purposes of pointer tagging). However, on some systems(like m68k) with lower alignment requirements(eg. usize / u32 aligned to 2 bytes),`hir::Lifetime` will be aligned to only 2 bytes. This causes the compilation to fail on those systems - a const assert in the compiler fails. This PR makes the aligement requriement of hir::Lifetime explict. This has no effect on platforms where that already is the case(repr align can only raise alignment), but ensures the alignment will stay correct no matter what.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
