Skip to content

rustfmt causes internal error when add comment between conditions #3678

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

Closed
rchaser53 opened this issue Jul 11, 2019 · 1 comment
Closed

rustfmt causes internal error when add comment between conditions #3678

rchaser53 opened this issue Jul 11, 2019 · 1 comment
Labels
a-comments bug Panic, non-idempotency, invalid code, etc.

Comments

@rchaser53
Copy link
Contributor

source:

fn main() {
    if a
        // panic!
        && b
    {}
}

playground:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=856d116c793b74e6809441b4ccf7af68

error message:
internal_error

@dvc94ch
Copy link

dvc94ch commented Jul 24, 2020

This works now, I guess the issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-comments bug Panic, non-idempotency, invalid code, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants