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

pretty-printer omits semicolon needed to disambiguate unary op #674

Closed
jruderman opened this issue Jul 12, 2011 · 0 comments
Closed

pretty-printer omits semicolon needed to disambiguate unary op #674

jruderman opened this issue Jul 12, 2011 · 0 comments
Labels
A-pretty Area: Pretty printing.

Comments

@jruderman
Copy link
Contributor

rustc --pretty normal src/test/run-pass/block-expr-precedence.rs

The last line,

if (true) { 12 };;; -num;

is pretty-printed as

if (true) { 12 }
-num;

which, when parsed, hits the precedence issue described in the test's comment.

@brson brson closed this as completed in 843767a Aug 3, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Redox: Use c_long instead of usize for off_t
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pretty Area: Pretty printing.
Projects
None yet
Development

No branches or pull requests

2 participants