mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +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…
Reference in New Issue
Block a user