diff options
| author | Waffle Maybe <waffle.lapkin@gmail.com> | 2022-11-08 21:49:58 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-08 21:49:58 +0400 |
| commit | 268ea3528d85c44126aa01a22b9c00f0951f21f0 (patch) | |
| tree | 1aaab712367acb30d1224090edb33215d87cafc3 /compiler/rustc_parse/src/parser | |
| parent | e5d01dcc78c32abf3abfadbc3b20c9080b5fca05 (diff) | |
| download | rust-268ea3528d85c44126aa01a22b9c00f0951f21f0.tar.gz rust-268ea3528d85c44126aa01a22b9c00f0951f21f0.zip | |
Fix outdated comment
Co-authored-by: clubby789 <jamie@hill-daniel.co.uk>
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -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 728435b6029..d784fef2bed 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -836,7 +836,7 @@ impl<'a> Parser<'a> { let with_postfix = self.parse_dot_or_call_expr_with_(cast_expr, span)?; // Check if an illegal postfix operator has been added after the cast. - // If the resulting expression is not a cast, or has a different memory location, it is an illegal postfix operator. + // If the resulting expression is not a cast, it is an illegal postfix operator. if !matches!(with_postfix.kind, ExprKind::Cast(_, _) | ExprKind::Type(_, _)) { let msg = format!( "{cast_kind} cannot be followed by {}", |
