mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
fix: filter out cfg disabled filed when lowering RecordPat
This commit is contained in:
parent
d410d4a2ba
commit
4505f03fbf
1 changed files with 1 additions and 0 deletions
|
@ -1335,6 +1335,7 @@ impl ExprCollector<'_> {
|
|||
let args = record_pat_field_list
|
||||
.fields()
|
||||
.filter_map(|f| {
|
||||
self.check_cfg(&f)?;
|
||||
let ast_pat = f.pat()?;
|
||||
let pat = self.collect_pat(ast_pat, binding_list);
|
||||
let name = f.field_name()?.as_name();
|
||||
|
|
Loading…
Reference in a new issue