Temporarily replace RangeEnd::Included with _
This commit is contained in:
parent
e8d3a22395
commit
2f81933272
1 changed files with 13 additions and 10 deletions
|
|
@ -59,16 +59,6 @@ impl Rewrite for Pat {
|
|||
None
|
||||
},
|
||||
PatKind::Range(ref lhs, ref rhs, ref end_kind) => match *end_kind {
|
||||
RangeEnd::Included => rewrite_pair(
|
||||
&**lhs,
|
||||
&**rhs,
|
||||
"",
|
||||
"...",
|
||||
"",
|
||||
context,
|
||||
shape,
|
||||
SeparatorPlace::Front,
|
||||
),
|
||||
RangeEnd::Excluded => rewrite_pair(
|
||||
&**lhs,
|
||||
&**rhs,
|
||||
|
|
@ -79,6 +69,19 @@ impl Rewrite for Pat {
|
|||
shape,
|
||||
SeparatorPlace::Front,
|
||||
),
|
||||
// FIXME: Change _ to RangeEnd::Included(RangeSyntax::DotDotDot)
|
||||
// and add RangeEnd::Included(RangeSyntax::DotDotEq)
|
||||
// once rust PR #44709 gets merged
|
||||
_ => rewrite_pair(
|
||||
&**lhs,
|
||||
&**rhs,
|
||||
"",
|
||||
"...",
|
||||
"",
|
||||
context,
|
||||
shape,
|
||||
SeparatorPlace::Front,
|
||||
),
|
||||
},
|
||||
PatKind::Ref(ref pat, mutability) => {
|
||||
let prefix = format!("&{}", format_mutability(mutability));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue