Static assert size of GenericBoun to ensure size doesn't change
This commit is contained in:
parent
fdf65053e9
commit
2eaf9fe364
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue