Skip to content

Commit

Permalink
remove size assertions to avoid nightly error
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Dec 27, 2023
1 parent c0923cb commit 5bdbbbe
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ast/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ impl<R> Expr<R> {
}
}

#[cfg(target_arch = "x86_64")]
static_assertions::assert_eq_size!(crate::Expr, [u8; 72]);
#[cfg(target_arch = "x86_64")]
static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]);
#[cfg(target_arch = "x86_64")]
static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]);
#[cfg(target_arch = "x86_64")]
static_assertions::assert_eq_size!(crate::ExceptHandler, [u8; 64]);
// TODO: make this a #[test] to avoid eq comparison
// #[cfg(target_arch = "x86_64")]
// static_assertions::assert_eq_size!(crate::Expr, [u8; 72]);
// #[cfg(target_arch = "x86_64")]
// static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]);
// #[cfg(target_arch = "x86_64")]
// static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]);
// #[cfg(target_arch = "x86_64")]
// static_assertions::assert_eq_size!(crate::ExceptHandler, [u8; 64]);

0 comments on commit 5bdbbbe

Please sign in to comment.