Skip to content

Suggest using cfg_if crate for chains of cfg(A) and cfg(not(A)) #1894

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

Open
clarfonthey opened this issue Jul 18, 2017 · 1 comment
Open

Suggest using cfg_if crate for chains of cfg(A) and cfg(not(A)) #1894

clarfonthey opened this issue Jul 18, 2017 · 1 comment

Comments

@clarfonthey
Copy link

This crate has been extremely useful for me and it would be helpful for clippy to notice these and suggest using the crate instead.

@briansmith
Copy link

Unfortunately cfg_if is problematic in some cases. I had to remove all use s of cfg_if out of a project recently because of rust-lang/rustfmt#3253. I actually am planning to have my CI/CD prevent use of cfg_if.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants