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:
parent
45b9dc1790
commit
dccb088961
@ -6,6 +6,10 @@ edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[features]
|
||||
macro-debug = []
|
||||
default = []
|
||||
|
||||
[dependencies]
|
||||
|
||||
[workspace]
|
||||
[workspace]
|
||||
|
@ -1,5 +1,6 @@
|
||||
#![feature(trace_macros)]
|
||||
#![feature(log_syntax)]
|
||||
#![cfg_attr(feature="macro-debug",feature(trace_macros))]
|
||||
#![cfg_attr(feature="macro-debug",feature(log_syntax))]
|
||||
#[cfg(feature="macro-debug")]
|
||||
trace_macros!{true}
|
||||
|
||||
/*
|
||||
@ -314,4 +315,4 @@ fn no_label() {
|
||||
);
|
||||
assert_eq!(mcode, [ 0xA9, 0xFB, 0xA9, 0xAB ]);
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user