Change management of test cfg to better support json projects

This commit is contained in:
Paul Daniel Faria 2020-06-07 10:29:03 -04:00
parent dc340f12a3
commit 3937b225e7
3 changed files with 7 additions and 8 deletions

View file

@ -151,7 +151,6 @@ pub(crate) fn load(
// FIXME: cfg options?
let default_cfg_options = {
let mut opts = get_rustc_cfg_options(None);
opts.insert_atom("test".into());
opts.insert_atom("debug_assertion".into());
opts
};

View file

@ -138,7 +138,6 @@ impl GlobalState {
// FIXME: Read default cfgs from config
let default_cfg_options = {
let mut opts = get_rustc_cfg_options(config.cargo.target.as_ref());
opts.insert_atom("test".into());
opts.insert_atom("debug_assertion".into());
opts
};