Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disambiguate Expr::Cast precedence in scan_left #1836

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Disambiguate Expr::Cast precedence in scan_left #1836

merged 1 commit into from
Jan 10, 2025

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jan 10, 2025

This makes a difference for expressions such as *(&(x as T)..) (unary deref containing range containing reference containing cast). Without this, it would get printed incorrectly as *(&x as T..) (unary deref containing range containing cast containing reference).

@dtolnay dtolnay merged commit cd3fa5a into master Jan 10, 2025
30 checks passed
@dtolnay dtolnay deleted the castleft branch January 10, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant