mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Change management of test cfg to better support json projects
This commit is contained in:
parent
dc340f12a3
commit
3937b225e7
3 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue