bool->enum for ast::PatKind::Struct presence of ..
See cee794ee98/compiler/rustc_parse/src/parser/pat.rs (L890-L897)
for the only place this is constructed.
This commit is contained in:
parent
df30a7a2e4
commit
d9ea1027b5
@ -259,9 +259,15 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option<String>
|
|||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
),
|
),
|
||||||
PatKind::Struct(ref qself, ref path, ref fields, ellipsis) => {
|
PatKind::Struct(ref qself, ref path, ref fields, rest) => rewrite_struct_pat(
|
||||||
rewrite_struct_pat(qself, path, fields, ellipsis, self.span, context, shape)
|
qself,
|
||||||
}
|
path,
|
||||||
|
fields,
|
||||||
|
rest == ast::PatFieldsRest::Rest,
|
||||||
|
self.span,
|
||||||
|
context,
|
||||||
|
shape,
|
||||||
|
),
|
||||||
PatKind::MacCall(ref mac) => {
|
PatKind::MacCall(ref mac) => {
|
||||||
rewrite_macro(mac, None, context, shape, MacroPosition::Pat)
|
rewrite_macro(mac, None, context, shape, MacroPosition::Pat)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user