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

Stable rustfmt panics on nested tuple access #4511

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

Stable rustfmt panics on nested tuple access #4511

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

Comments

@khoek
Copy link

khoek commented Nov 4, 2020

Describe the bug

The expression a.0.1; on a line in the body of a function panics rustfmt.

To Reproduce

Try to format:

fn main() {
    a.0.1;
}

Expected behavior

No crash, since this is well formed rust code (and would compile if we cluttered the reproducer with a definition of a).

Meta

  • rustfmt version: rustfmt 1.4.20-stable (48f6c32 2020-08-09)
  • From where did you install rustfmt?: rustup
  • How do you run rustfmt: rustfmt
@khoek khoek added the bug Panic, non-idempotency, invalid code, etc. label Nov 4, 2020
@khoek khoek changed the title Stable rust panics on nested tuple access Stable rustfmt panics on nested tuple access 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