Merge #10420
10420: Parse outer attributes on StructPatternEtCetera r=jonas-schievink a=XFFXFF Try to fix https://github.com/rust-analyzer/rust-analyzer/issues/8610 Related pr in ungrammer: https://github.com/rust-analyzer/ungrammar/pull/41 Co-authored-by: zhoufan <1247714429@qq.com>
This commit is contained in:
@@ -818,7 +818,7 @@ impl ExprCollector<'_> {
|
||||
let ellipsis = p
|
||||
.record_pat_field_list()
|
||||
.expect("every struct should have a field list")
|
||||
.dotdot_token()
|
||||
.rest_pat()
|
||||
.is_some();
|
||||
|
||||
Pat::Record { path, args, ellipsis }
|
||||
|
||||
Reference in New Issue
Block a user