mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Static assert size of GenericBoun to ensure size doesn't change
This commit is contained in:
parent
fdf65053e9
commit
2eaf9fe364
@ -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…
Reference in New Issue
Block a user