From: Debian Rust Maintainers Date: Fri, 2 Nov 2018 08:42:36 +0000 (+0000) Subject: d-sparc64-dont-pack-spans X-Git-Tag: archive/raspbian/1.30.0+dfsg1-2+rpi1~1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=96277f22da9f33764fcc3cb2ddd5950ca9ccdda3;p=rustc.git d-sparc64-dont-pack-spans Gbp-Pq: Name d-sparc64-dont-pack-spans.patch --- 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 {}