-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo-nono does not detect #![cfg_attr(not(any(test, doctest)), no_std)]
#61
Comments
Similarly cannot detect |
Cannot detect |
Seeing this erroneously flag |
In case I/someone wants to include a robust solution for this: I just stumbled upon https://crates.io/crates/cfg-expr, which |
A crate with
#![cfg_attr(not(any(test, doctest)), no_std)]
definitely does not need std for it to be used, although it uses std for some of its own tests.Is there any reason why this pattern is considered not valid by cargo-nono?
The text was updated successfully, but these errors were encountered: