stable: put macro debug flags behind feature gate

This enables tests to work on stable. To enable macro debugging, build
with `--features macro-debug`.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-08-06 10:49:58 +08:00
parent 45b9dc1790
commit dccb088961
2 changed files with 9 additions and 4 deletions

View File

@ -6,6 +6,10 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
macro-debug = []
default = []
[dependencies] [dependencies]
[workspace] [workspace]

View File

@ -1,5 +1,6 @@
#![feature(trace_macros)] #![cfg_attr(feature="macro-debug",feature(trace_macros))]
#![feature(log_syntax)] #![cfg_attr(feature="macro-debug",feature(log_syntax))]
#[cfg(feature="macro-debug")]
trace_macros!{true} trace_macros!{true}
/* /*