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

This code takes suspciously long to converge #766

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

This code takes suspciously long to converge #766

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

Comments

@jruderman
Copy link
Contributor

fn main() { ret (ret m) as int + 1; }

fn main() { ret (ret m as int) + 1; }

fn main() { ret ret m as int + 1; }

fn main() { ret ret (m as int) + 1; }

The last one is finally stable, but it clearly doesn't do the same thing as the first line.

@brson
Copy link
Contributor

brson commented Aug 21, 2011

The precedence issues here are fixed, but this can't be tested within our current test framework because the code is invalid (can't cast _|_ to int).

@catamorphism
Copy link
Contributor

Closing under the principle that we don't need to pretty-print ill-typed code correctly.

pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Fix incorrect pseudocode for #[repr(C)] struct alignment
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Added extra config to cargo.toml

* Developer documentation

* Apply suggestions from code review

Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com>

* Added lines to bookrunner cargo.toml

Co-authored-by: Adrian Palacios <73246657+adpaco-aws@users.noreply.github.com>
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