Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsyntax_pos: Don't use packed attribute for Span on sparc64/v9
Due the limitation that #[derive(...)] on #[repr(packed)] structs does not guarantee proper alignment of the compiler-generated impls is not guaranteed (rust-lang#39696), the change in rust-lang#44646 to compress Spans results in the compiler generating code with unaligned access. Until rust-lang#39696 has been fixed, the issue can be worked around by not using the packed attribute on sparc64 and sparcv9 on the Span struct. Fixes: rust-lang#45509
- Loading branch information