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

expr "(@1).x" does not round-trip #670

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

expr "(@1).x" does not round-trip #670

jruderman opened this issue Jul 12, 2011 · 2 comments
Labels
A-pretty Area: Pretty printing (including `-Z unpretty`)

Comments

@jruderman
Copy link
Contributor

fn main() {
    (@1).x;
}

pretty-prints as

fn main() { @).x; }

which is obviously wrong.

@brson
Copy link
Contributor

brson commented Jul 12, 2011

Printing 1 is the same problem as in #672 and should be fixed. Which leaves the problem that (@1).x round trips as @1.x which, I believe, is incorrect, dot having higher precedence than @.

@msullivan
Copy link
Contributor

It looks like this has been fixed.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Add execvpe for support *nix platforms
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
bors pushed a commit to rust-lang-ci/rust that referenced this issue Oct 26, 2020
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
…st-lang#670)

* Refactor with `Book` struct and set default edition for each book

* Comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pretty Area: Pretty printing (including `-Z unpretty`)
Projects
None yet
Development

No branches or pull requests

3 participants