Skip to content
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

nested not in cfg doesn't work #10946

Closed
klutzy opened this issue Dec 13, 2013 · 1 comment
Closed

nested not in cfg doesn't work #10946

klutzy opened this issue Dec 13, 2013 · 1 comment

Comments

@klutzy
Copy link
Contributor

klutzy commented Dec 13, 2013

This compiles and prints "nonesuch":

#[crate_type = "bin"];
#[cfg(not(not(nonesuch)))]
fn main() {
    if cfg!(not(not(nonesuch))) {
        println("nonesuch");
    }
}

syntax::attr::test_cfg doesn't work in a recursive way. It may be better to forbid it instead?

@klutzy
Copy link
Contributor Author

klutzy commented May 28, 2014

non-issue. Maybe we have to leave a note that "not(expression) is not what you want".

@klutzy klutzy closed this as completed May 28, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 30, 2023
…rednet

[`match_same_arms`]: don't lint if `non_exhaustive_omitted_patterns`

Fixes rust-lang#10327

changelog: [`match_same_arms`]: Don't lint if `non_exhaustive_omitted_patterns` is `warn` or `deny`
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

1 participant