Skip to content

Commit 2eaf9fe

Browse files
committed
Static assert size of GenericBoun to ensure size doesn't change
1 parent fdf6505 commit 2eaf9fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_hir/src/hir.rs

+3
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ pub enum GenericBound<'hir> {
445445
Outlives(Lifetime),
446446
}
447447

448+
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
449+
rustc_data_structures::static_assert_size!(GenericBound<'_>, 48);
450+
448451
impl GenericBound<'_> {
449452
pub fn trait_ref(&self) -> Option<&TraitRef<'_>> {
450453
match self {

0 commit comments

Comments
 (0)