mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
fix: filter out cfg disabled filed when lowering RecordPat
This commit is contained in:
parent
d410d4a2ba
commit
4505f03fbf
@ -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…
x
Reference in New Issue
Block a user