mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +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
|
@ -234,8 +234,8 @@ impl Crate {
|
|||
db.crate_graph()[self.id].cfg_options.clone()
|
||||
}
|
||||
|
||||
pub fn features(&self, db: &dyn HirDatabase) -> Vec<String> {
|
||||
db.crate_graph()[self.id].features.iter().map(|(feat, _)| feat.clone()).collect()
|
||||
pub fn potential_cfg(&self, db: &dyn HirDatabase) -> CfgOptions {
|
||||
db.crate_graph()[self.id].potential_cfg_options.clone()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue