diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-17 21:02:11 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-20 12:10:04 -0700 |
| commit | 833a64d76e1d3ecca5f66469b1a8ec7c97a1c9d9 (patch) | |
| tree | 3fe13b976334de98aba3406d0ecd5cc831fb951f /src/test/run-pass/conditional-debug-macro-on.rs | |
| parent | 89cc8529cc18802e4d7feb370e56809a1150b750 (diff) | |
| download | rust-833a64d76e1d3ecca5f66469b1a8ec7c97a1c9d9.tar.gz rust-833a64d76e1d3ecca5f66469b1a8ec7c97a1c9d9.zip | |
Invert --cfg debug to --cfg ndebug
Many people will be very confused that their debug! statements aren't working when they first use rust only to learn that they should have been building with `--cfg debug` the entire time. This inverts the meaning of the flag to instead of enabling debug statements, now it disables debug statements. This way the default behavior is a bit more reasonable, and requires less end-user configuration. Furthermore, this turns on debug by default when building the rustc compiler.
Diffstat (limited to 'src/test/run-pass/conditional-debug-macro-on.rs')
| -rw-r--r-- | src/test/run-pass/conditional-debug-macro-on.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/run-pass/conditional-debug-macro-on.rs b/src/test/run-pass/conditional-debug-macro-on.rs index 65b751a5826..2fe6d179348 100644 --- a/src/test/run-pass/conditional-debug-macro-on.rs +++ b/src/test/run-pass/conditional-debug-macro-on.rs @@ -9,7 +9,6 @@ // except according to those terms. // xfail-fast compile-flags directive doesn't work for check-fast -// compile-flags: --cfg debug // exec-env:RUST_LOG=conditional-debug-macro-on=4 fn main() { @@ -18,4 +17,4 @@ fn main() { debug!({ if true { return; } }); fail!(); -} \ No newline at end of file +} |
