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

rustfmt panics on this simple code #4509

Closed
alexxbb opened this issue Nov 4, 2020 · 1 comment
Closed

rustfmt panics on this simple code #4509

alexxbb opened this issue Nov 4, 2020 · 1 comment
Labels
bug Panic, non-idempotency, invalid code, etc. duplicate

Comments

@alexxbb
Copy link

alexxbb commented Nov 4, 2020

Describe the bug

Running rustfmt-nightly panics when encounter a space character between a type field and a method. See the example.

To Reproduce

Link to playground

You can see a whitespace character between 0. and abs() which freaks out rustfmt

Try to apply rustfmt in the playground and you'll an error.

Meta

  • rustfmt version: 1.4.21
  • From where did you install rustfmt?:
    env CFG_RELEASE_CHANNEL=nightly CFG_RELEASE=1.47.0-nightly cargo +nightly install --force rustfmt-nightly
  • How do you run rustfmt: rustfmt and via Intellij Rust plugin
@alexxbb alexxbb added the bug Panic, non-idempotency, invalid code, etc. label Nov 4, 2020
@calebcartwright
Copy link
Member

Duplicate of #4355, resolved in the upcoming 1.4.23 release

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

No branches or pull requests

2 participants