Skip to content

Commit 268ea35

Browse files
Fix outdated comment
Co-authored-by: clubby789 <jamie@hill-daniel.co.uk>
1 parent e5d01dc commit 268ea35

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ impl<'a> Parser<'a> {
836836
let with_postfix = self.parse_dot_or_call_expr_with_(cast_expr, span)?;
837837

838838
// Check if an illegal postfix operator has been added after the cast.
839-
// If the resulting expression is not a cast, or has a different memory location, it is an illegal postfix operator.
839+
// If the resulting expression is not a cast, it is an illegal postfix operator.
840840
if !matches!(with_postfix.kind, ExprKind::Cast(_, _) | ExprKind::Type(_, _)) {
841841
let msg = format!(
842842
"{cast_kind} cannot be followed by {}",

0 commit comments

Comments
 (0)