Skip to content

Commit

Permalink
Remove precedence logic for the removed type ascription expression
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 25, 2023
1 parent 64ed2b1 commit 1f705d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1301,9 +1301,7 @@ pub(crate) mod parsing {
Precedence::Assign
} else if input.peek(Token![..]) {
Precedence::Range
} else if input.peek(Token![as])
|| cfg!(feature = "full") && input.peek(Token![:]) && !input.peek(Token![::])
{
} else if input.peek(Token![as]) {
Precedence::Cast
} else {
Precedence::Any
Expand Down

0 comments on commit 1f705d8

Please sign in to comment.