We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e069e26 commit 3c371e5Copy full SHA for 3c371e5
libc-test/test/style/mod.rs
@@ -38,6 +38,7 @@ use syn::visit::{self, Visit};
38
use syn::Token;
39
40
const ALLOWED_REPEATED_MACROS: &[&str] = &["s", "s_no_extra_traits", "s_paren"];
41
+const ALLOWED_POSITIVE_S_CFGS: &[&str] = &["musl32_time64"];
42
43
pub type Error = Box<dyn std::error::Error>;
44
pub type Result<T> = std::result::Result<T, Error>;
@@ -272,6 +273,8 @@ impl StyleChecker {
272
273
if !meta_str.starts_with("not")
274
&& !meta_str.starts_with("any")
275
&& !meta_str.starts_with("all")
276
+ && !meta_str.starts_with("target_endian")
277
+ && !ALLOWED_POSITIVE_S_CFGS.contains(&meta_str.as_str())
278
{
279
self.error(
280
"positive #[cfg] for s! macro".to_string(),
0 commit comments