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 prints comments above a case too late #497

Closed
marijnh opened this issue Jun 15, 2011 · 1 comment
Closed

Pretty-printer prints comments above a case too late #497

marijnh opened this issue Jun 15, 2011 · 1 comment
Labels
A-pretty Area: Pretty printing.

Comments

@marijnh
Copy link
Contributor

marijnh commented Jun 15, 2011

In parser.rs, we now have...

            case (
                 //the lexer can't tell the different kinds of stars apart ) :
                 token::BINOP(token::STAR)) {
                glob = true;
                p.bump();
            }

The comment used to be above the case, but ends up being printed after the "case (" part has already been output.

@brson
Copy link
Contributor

brson commented Mar 6, 2012

I can no longer reproduce this issue. Instead of printing the comments too late, it now adds extra whitespace (#850).

@brson brson closed this as completed Mar 6, 2012
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Actually run postopt

* Fix OpenMP gradient

Co-authored-by: Ubuntu <ubuntu@ip-172-31-66-106.ec2.internal>
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Jul 10, 2024
…rted-main-function

Fix check for main function already declared
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