about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-11-13 06:34:11 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2018-11-13 11:30:43 +1100
commit2bd4d5b1a0b05827401970f0cfbe17e6b6f32d0d (patch)
tree06e7210376b17144d9adbd90023858cb67d9f9e4 /src/libsyntax
parentfb3dd9f64ee9b34d6d0e25363ceda3a6ba9dcec3 (diff)
downloadrust-2bd4d5b1a0b05827401970f0cfbe17e6b6f32d0d.tar.gz
rust-2bd4d5b1a0b05827401970f0cfbe17e6b6f32d0d.zip
Move two `static_assert!`s to better spots.
And make them x86_64-only so they can use `==` instead of `<=`.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index fa6fe347833..808e19d6f12 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -20,6 +20,7 @@ use print::pprust;
 use ptr::P;
 use rustc_data_structures::indexed_vec;
 use rustc_data_structures::indexed_vec::Idx;
+#[cfg(target_arch = "x86_64")]
 use rustc_data_structures::static_assert;
 use rustc_target::spec::abi::Abi;
 use source_map::{dummy_spanned, respan, Spanned};