diff --git a/core/core/src/lib.rs b/core/core/src/lib.rs index 5d9039efd52e..ab4d95aa5d89 100644 --- a/core/core/src/lib.rs +++ b/core/core/src/lib.rs @@ -173,21 +173,7 @@ pub mod services; #[cfg(test)] mod tests { - use std::mem::size_of; - use super::*; - /// This is not a real test case. - /// - /// We assert our public structs here to make sure we don't introduce - /// unexpected struct/enum size change. - #[cfg(target_pointer_width = "64")] - #[test] - fn assert_size() { - assert_eq!(16, size_of::()); - assert_eq!(360, size_of::()); - assert_eq!(336, size_of::()); - assert_eq!(1, size_of::()); - } trait AssertSendSync: Send + Sync {} impl AssertSendSync for Entry {} diff --git a/core/core/src/types/error.rs b/core/core/src/types/error.rs index 2639b9e1b0a3..998cdd4c55b7 100644 --- a/core/core/src/types/error.rs +++ b/core/core/src/types/error.rs @@ -507,7 +507,6 @@ impl From for io::Error { #[cfg(test)] mod tests { - use std::mem::size_of; use std::sync::LazyLock; use anyhow::anyhow; @@ -528,16 +527,6 @@ mod tests { backtrace: None, }); - /// This is not a real test case. - /// - /// We assert our public structs here to make sure we don't introduce - /// unexpected struct/enum size change. - #[cfg(target_pointer_width = "64")] - #[test] - fn assert_size() { - assert_eq!(88, size_of::()); - } - #[test] fn test_error_display() { let s = format!("{}", LazyLock::force(&TEST_ERROR));