]> git.lizzy.rs Git - rust.git/commit
auto merge of #8188 : huonw/rust/cfg-macro, r=pcwalton
authorbors <bors@rust-lang.org>
Fri, 2 Aug 2013 10:52:51 +0000 (03:52 -0700)
committerbors <bors@rust-lang.org>
Fri, 2 Aug 2013 10:52:51 +0000 (03:52 -0700)
commit2460170e6aea8dd7aa3e316456047baf18f2f680
tree6a90b461f7328987caa9bbf3c4b9caa49e092adc
parentdbde42e59e6854979085f3b8a949f307b4da8ffa
parente995d9935b5bccb484db85b75a344258e74f21a5
auto merge of #8188 : huonw/rust/cfg-macro, r=pcwalton

Example:

    if cfg!(test) {
       calculation_to_run_only_when_testing();
    }

Closes #8130.
src/libsyntax/ext/base.rs
src/libsyntax/syntax.rs