Skip to content

Commit

Permalink
Fix outdated comment
Browse files Browse the repository at this point in the history
Co-authored-by: clubby789 <jamie@hill-daniel.co.uk>
  • Loading branch information
WaffleLapkin and clubby789 authored Nov 8, 2022
1 parent e5d01dc commit 268ea35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/parser/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}",
Expand Down

0 comments on commit 268ea35

Please sign in to comment.