Check for missing space between fat arrow and range pattern
This commit is contained in:
parent
d6f0642827
commit
4bfab39f9b
4 changed files with 59 additions and 14 deletions
|
@ -3168,7 +3168,7 @@ impl<'a> Parser<'a> {
|
|||
limits: RangeLimits,
|
||||
) -> ExprKind {
|
||||
if end.is_none() && limits == RangeLimits::Closed {
|
||||
self.inclusive_range_with_incorrect_end(self.prev_token.span);
|
||||
self.inclusive_range_with_incorrect_end();
|
||||
ExprKind::Err
|
||||
} else {
|
||||
ExprKind::Range(start, end, limits)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue