From 9512d9c1d9e5ee90bff9c29946c1118364f576f7 Mon Sep 17 00:00:00 2001 From: Jeehoon Kang Date: Fri, 13 Nov 2020 10:12:56 +0900 Subject: [PATCH] Relaxed size constrait of Local (closes #597) --- crossbeam-epoch/src/internal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossbeam-epoch/src/internal.rs b/crossbeam-epoch/src/internal.rs index 9976ffe86..79a6ca6d0 100644 --- a/crossbeam-epoch/src/internal.rs +++ b/crossbeam-epoch/src/internal.rs @@ -376,7 +376,7 @@ pub struct Local { // https://github.com/crossbeam-rs/crossbeam/issues/551 #[test] fn local_size() { - assert_eq!(2040, core::mem::size_of::()); + assert!(core::mem::size_of::() <= 2040, "An allocation of `Local` should be <= 2048 bytes."); } impl Local {