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

Panic on double tuple indexing #4494

Closed
1c7718e7 opened this issue Oct 26, 2020 · 1 comment
Closed

Panic on double tuple indexing #4494

1c7718e7 opened this issue Oct 26, 2020 · 1 comment
Labels
bug Panic, non-idempotency, invalid code, etc. duplicate

Comments

@1c7718e7
Copy link

Describe the bug

Rustfmt panics when formatting perfectly valid, stable Rust code.

To Reproduce

Run rustfmt on:

const y: () = x.0.1; // whether x is defined does not matter.

Bug is triggered inside any expressions, not just const declarations.

Expected behavior

Rustfmt does not panic.

Meta

  • rustfmt version: rustfmt 1.4.22-nightly (97d0301 2020-10-04)
  • From where did you install rustfmt?: rustup
  • How do you run rustfmt: cargo-fmt, but bug is also reproducible by running rustfmt directly
@1c7718e7 1c7718e7 added the bug Panic, non-idempotency, invalid code, etc. label Oct 26, 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