diff options
Diffstat (limited to 'crates/ra_hir_def/src/body')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 6f56d3d7a..c1d7eb826 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -306,8 +306,7 @@ impl ExprCollector<'_> { | |||
306 | .inspect(|field| field_ptrs.push(AstPtr::new(field))) | 306 | .inspect(|field| field_ptrs.push(AstPtr::new(field))) |
307 | .filter_map(|field| { | 307 | .filter_map(|field| { |
308 | let attrs = self.expander.parse_attrs(&field); | 308 | let attrs = self.expander.parse_attrs(&field); |
309 | 309 | if !self.expander.is_cfg_enabled(&attrs) { | |
310 | if !self.expander.check_cfg(&attrs) { | ||
311 | return None; | 310 | return None; |
312 | } | 311 | } |
313 | 312 | ||