diff --git a/derive/src/lib.rs b/derive/src/lib.rs index cd8f1b2..6fdbcca 100644 --- a/derive/src/lib.rs +++ b/derive/src/lib.rs @@ -36,6 +36,7 @@ pub fn derive_arbitrary(tokens: proc_macro::TokenStream) -> proc_macro::TokenStr (quote! { thread_local! { + #[allow(non_upper_case_globals)] static #recursive_count: std::cell::Cell = std::cell::Cell::new(0); } diff --git a/tests/derive.rs b/tests/derive.rs index 3882236..2d666f6 100755 --- a/tests/derive.rs +++ b/tests/derive.rs @@ -1,5 +1,4 @@ #![cfg(feature = "derive")] - // Various structs/fields that we are deriving `Arbitrary` for aren't actually // used except to exercise the derive. #![allow(dead_code)] diff --git a/tests/path.rs b/tests/path.rs index f9e2f29..c42ec0a 100644 --- a/tests/path.rs +++ b/tests/path.rs @@ -1,5 +1,4 @@ #![cfg(feature = "derive")] - // Various structs/fields that we are deriving `Arbitrary` for aren't actually // used except to show off the derive. #![allow(dead_code)]