We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d01dc commit 268ea35Copy full SHA for 268ea35
compiler/rustc_parse/src/parser/expr.rs
@@ -836,7 +836,7 @@ impl<'a> Parser<'a> {
836
let with_postfix = self.parse_dot_or_call_expr_with_(cast_expr, span)?;
837
838
// 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.
+ // If the resulting expression is not a cast, it is an illegal postfix operator.
840
if !matches!(with_postfix.kind, ExprKind::Cast(_, _) | ExprKind::Type(_, _)) {
841
let msg = format!(
842
"{cast_kind} cannot be followed by {}",
0 commit comments