Skip to content

Commit 29c4728

Browse files
authored
remove size assertions to avoid nightly error (#111)
1 parent c0923cb commit 29c4728

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

ast/src/impls.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ impl<R> Expr<R> {
5454
}
5555
}
5656

57-
#[cfg(target_arch = "x86_64")]
58-
static_assertions::assert_eq_size!(crate::Expr, [u8; 72]);
59-
#[cfg(target_arch = "x86_64")]
60-
static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]);
61-
#[cfg(target_arch = "x86_64")]
62-
static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]);
63-
#[cfg(target_arch = "x86_64")]
64-
static_assertions::assert_eq_size!(crate::ExceptHandler, [u8; 64]);
57+
// TODO: make this a #[test] to avoid eq comparison
58+
// #[cfg(target_arch = "x86_64")]
59+
// static_assertions::assert_eq_size!(crate::Expr, [u8; 72]);
60+
// #[cfg(target_arch = "x86_64")]
61+
// static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]);
62+
// #[cfg(target_arch = "x86_64")]
63+
// static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]);
64+
// #[cfg(target_arch = "x86_64")]
65+
// static_assertions::assert_eq_size!(crate::ExceptHandler, [u8; 64]);

0 commit comments

Comments
 (0)