From 96277f22da9f33764fcc3cb2ddd5950ca9ccdda3 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Fri, 2 Nov 2018 08:42:36 +0000 Subject: [PATCH] d-sparc64-dont-pack-spans Gbp-Pq: Name d-sparc64-dont-pack-spans.patch --- src/libsyntax_pos/span_encoding.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsyntax_pos/span_encoding.rs b/src/libsyntax_pos/span_encoding.rs index 473aa1bd1b..f95848cf05 100644 --- a/src/libsyntax_pos/span_encoding.rs +++ b/src/libsyntax_pos/span_encoding.rs @@ -26,7 +26,9 @@ use std::hash::{Hash, Hasher}; /// The primary goal of `Span` is to be as small as possible and fit into other structures /// (that's why it uses `packed` as well). Decoding speed is the second priority. /// See `SpanData` for the info on span fields in decoded representation. -#[repr(packed)] + +/// Workaround for compiler bug: https://github.com/rust-lang/rust/issues/53181 +#[cfg_attr(not(any(target_arch = "sparc64", target_arch = "sparcv9")), repr(packed))] pub struct Span(u32); impl Copy for Span {} -- 2.30.2