diff options
author | Jamie Cunliffe <[email protected]> | 2021-05-31 20:45:01 +0100 |
---|---|---|
committer | Jamie Cunliffe <[email protected]> | 2021-06-21 17:54:05 +0100 |
commit | ae823aa23f1c4fa55e71dd972d0b10c69148b0b4 (patch) | |
tree | 9c39a29bdee4f45dcbd497c25350cbfbb0c5e9c3 /crates/hir | |
parent | 284483b347d15bee3a7bf293d33e5f19a9740102 (diff) |
Move features into potential_cfg_options
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 2b2aaec94..30cc34403 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs | |||
@@ -234,8 +234,8 @@ impl Crate { | |||
234 | db.crate_graph()[self.id].cfg_options.clone() | 234 | db.crate_graph()[self.id].cfg_options.clone() |
235 | } | 235 | } |
236 | 236 | ||
237 | pub fn features(&self, db: &dyn HirDatabase) -> Vec<String> { | 237 | pub fn potential_cfg(&self, db: &dyn HirDatabase) -> CfgOptions { |
238 | db.crate_graph()[self.id].features.iter().map(|(feat, _)| feat.clone()).collect() | 238 | db.crate_graph()[self.id].potential_cfg_options.clone() |
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||