diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-11 16:55:26 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-11 16:55:26 +0100 |
commit | e7a68c8f55e0770fdeae508a1710509c13aaffa1 (patch) | |
tree | 56227291b99e0bdccf2b41c911d797794908d3c4 /crates/ra_hir_def/src/attr.rs | |
parent | 997c959d4f373df0cbba09609c5e4d8215d3d0c7 (diff) | |
parent | f980b0752994a1b823499f6edb10fd9c4c285c42 (diff) |
Merge #3949
3949: Cleanup cfg handling in items r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/attr.rs')
-rw-r--r-- | crates/ra_hir_def/src/attr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/attr.rs b/crates/ra_hir_def/src/attr.rs index 7b0c506b1..2f2e3e5ba 100644 --- a/crates/ra_hir_def/src/attr.rs +++ b/crates/ra_hir_def/src/attr.rs | |||
@@ -93,6 +93,7 @@ impl Attrs { | |||
93 | } | 93 | } |
94 | 94 | ||
95 | pub(crate) fn is_cfg_enabled(&self, cfg_options: &CfgOptions) -> bool { | 95 | pub(crate) fn is_cfg_enabled(&self, cfg_options: &CfgOptions) -> bool { |
96 | // FIXME: handle cfg_attr :-) | ||
96 | self.by_key("cfg").tt_values().all(|tt| cfg_options.is_cfg_enabled(tt) != Some(false)) | 97 | self.by_key("cfg").tt_values().all(|tt| cfg_options.is_cfg_enabled(tt) != Some(false)) |
97 | } | 98 | } |
98 | } | 99 | } |