We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bccd7b4 + 27241c6 commit 9029685Copy full SHA for 9029685
1 file changed
derive/src/lib.rs
@@ -60,7 +60,9 @@ fn expand_derive_arbitrary(input: syn::DeriveInput) -> Result<TokenStream> {
60
const _: () = {
61
::std::thread_local! {
62
#[allow(non_upper_case_globals)]
63
- static #recursive_count: ::core::cell::Cell<u32> = ::core::cell::Cell::new(0);
+ static #recursive_count: ::core::cell::Cell<u32> = const {
64
+ ::core::cell::Cell::new(0)
65
+ };
66
}
67
68
#[automatically_derived]
0 commit comments