Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4505f03

Browse files
committed
fix: filter out cfg disabled filed when lowering RecordPat
1 parent d410d4a commit 4505f03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/hir-def/src/body/lower.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,7 @@ impl ExprCollector<'_> {
13351335
let args = record_pat_field_list
13361336
.fields()
13371337
.filter_map(|f| {
1338+
self.check_cfg(&f)?;
13381339
let ast_pat = f.pat()?;
13391340
let pat = self.collect_pat(ast_pat, binding_list);
13401341
let name = f.field_name()?.as_name();

0 commit comments

Comments
 (0)