Skip to content

Commit

Permalink
Rename invalid false cfg to valid _false cfg
Browse files Browse the repository at this point in the history
While `false` is accepted by `--cfg` it isn't by `#[cfg(false)]`
since in that context `false` is the boolean not a ident.
  • Loading branch information
Urgau committed Apr 6, 2024
1 parent 3ba0139 commit 47ff773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ui/instrument-coverage/off-values.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//@ check-pass
//@ revisions: n no off false zero
//@ revisions: n no off _false zero
//@ [n] compile-flags: -Cinstrument-coverage=n
//@ [no] compile-flags: -Cinstrument-coverage=no
//@ [off] compile-flags: -Cinstrument-coverage=off
//@ [false] compile-flags: -Cinstrument-coverage=false
//@ [_false] compile-flags: -Cinstrument-coverage=false
//@ [zero] compile-flags: -Cinstrument-coverage=0

fn main() {}

0 comments on commit 47ff773

Please sign in to comment.