diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-01-28 20:02:00 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-01-28 20:52:01 +0000 |
| commit | 4bfab39f9b466fa89f85c57a42c1e71a99c6aa4e (patch) | |
| tree | 2c6debcee80dbbdfa88362a5dcfff6d01152e8e6 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | d6f0642827e21a088b0130c84857d84f5433301d (diff) | |
| download | rust-4bfab39f9b466fa89f85c57a42c1e71a99c6aa4e.tar.gz rust-4bfab39f9b466fa89f85c57a42c1e71a99c6aa4e.zip | |
Check for missing space between fat arrow and range pattern
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 3225a309a31..17d1e200b41 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -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) |
