about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorjackh726 <jack.huey@umassmed.edu>2021-08-14 20:25:38 -0400
committerjackh726 <jack.huey@umassmed.edu>2021-09-07 17:53:43 -0400
commit2eaf9fe364b9d3ce19addba2201fa4a84492c085 (patch)
treee6039a00efcfd64a351960fc8250143b3facada4 /compiler
parentfdf65053e99e8966f9bd83b5a8491326cb33d638 (diff)
downloadrust-2eaf9fe364b9d3ce19addba2201fa4a84492c085.tar.gz
rust-2eaf9fe364b9d3ce19addba2201fa4a84492c085.zip
Static assert size of GenericBoun to ensure size doesn't change
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_hir/src/hir.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs
index 21fe894c6fc..4821b81153a 100644
--- a/compiler/rustc_hir/src/hir.rs
+++ b/compiler/rustc_hir/src/hir.rs
@@ -445,6 +445,9 @@ pub enum GenericBound<'hir> {
     Outlives(Lifetime),
 }
 
+#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
+rustc_data_structures::static_assert_size!(GenericBound<'_>, 48);
+
 impl GenericBound<'_> {
     pub fn trait_ref(&self) -> Option<&TraitRef<'_>> {
         match self {