Static assert size of GenericBoun to ensure size doesn't change

This commit is contained in:
jackh726 2021-08-14 20:25:38 -04:00
parent fdf65053e9
commit 2eaf9fe364

View File

@ -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 {