about summary refs log tree commit diff
path: root/src/librustc_errors/lib.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-11-11 22:18:35 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-11-11 22:23:25 +0300
commite7c42f0cf0b46ec4788f98c5bf30cda8a45cdd83 (patch)
tree58c7230f991bdf442e75865b477bdcbfb9ce0b6b /src/librustc_errors/lib.rs
parent56237d75b4271a8a2e0f47d86ea76ebf6d966152 (diff)
downloadrust-e7c42f0cf0b46ec4788f98c5bf30cda8a45cdd83.tar.gz
rust-e7c42f0cf0b46ec4788f98c5bf30cda8a45cdd83.zip
Tiny cleanup to size assertions
Diffstat (limited to 'src/librustc_errors/lib.rs')
-rw-r--r--src/librustc_errors/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index fb5cccf61a7..8ee28875c62 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -15,8 +15,6 @@ use Level::*;
 
 use emitter::{Emitter, EmitterWriter, is_case_difference};
 use registry::Registry;
-#[cfg(target_arch = "x86_64")]
-use rustc_data_structures::static_assert_size;
 use rustc_data_structures::sync::{self, Lrc, Lock};
 use rustc_data_structures::fx::{FxHashSet, FxIndexMap};
 use rustc_data_structures::stable_hasher::StableHasher;
@@ -54,7 +52,7 @@ pub type PResult<'a, T> = Result<T, DiagnosticBuilder<'a>>;
 // `PResult` is used a lot. Make sure it doesn't unintentionally get bigger.
 // (See also the comment on `DiagnosticBuilderInner`.)
 #[cfg(target_arch = "x86_64")]
-static_assert_size!(PResult<'_, bool>, 16);
+rustc_data_structures::static_assert_size!(PResult<'_, bool>, 16);
 
 /// Indicates the confidence in the correctness of a suggestion.
 ///