mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Move features into potential_cfg_options
This commit is contained in:
parent
284483b347
commit
ae823aa23f
6 changed files with 32 additions and 38 deletions
|
@ -128,10 +128,10 @@ impl ChangeFixture {
|
|||
file_id,
|
||||
meta.edition,
|
||||
Some(crate_name.clone().into()),
|
||||
meta.cfg.clone(),
|
||||
meta.cfg,
|
||||
meta.env,
|
||||
Default::default(),
|
||||
Default::default(),
|
||||
);
|
||||
let prev = crates.insert(crate_name.clone(), crate_id);
|
||||
assert!(prev.is_none());
|
||||
|
@ -158,10 +158,10 @@ impl ChangeFixture {
|
|||
crate_root,
|
||||
Edition::Edition2018,
|
||||
Some(CrateName::new("test").unwrap().into()),
|
||||
default_cfg.clone(),
|
||||
default_cfg,
|
||||
Env::default(),
|
||||
Default::default(),
|
||||
Default::default(),
|
||||
);
|
||||
} else {
|
||||
for (from, to) in crate_deps {
|
||||
|
@ -188,6 +188,7 @@ impl ChangeFixture {
|
|||
Edition::Edition2021,
|
||||
Some(CrateDisplayName::from_canonical_name("core".to_string())),
|
||||
CfgOptions::default(),
|
||||
CfgOptions::default(),
|
||||
Env::default(),
|
||||
Vec::new(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue