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

nested tuple field access formats as tuple field access and float #4683

Closed
phrohdoh opened this issue Jan 31, 2021 · 1 comment
Closed

nested tuple field access formats as tuple field access and float #4683

phrohdoh opened this issue Jan 31, 2021 · 1 comment

Comments

@phrohdoh
Copy link

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1d48baa8ed38a4c4e3e5bade31c0a4f9

Input

struct A(String);
struct B(A);

fn do_thing(b: B) -> String {
    b.0.0
}

Output

struct A(String);
struct B(A);

fn do_thing(b: B) -> String {
    b.0 .0
}

Expected output

unchanged from input

Meta

  • rustfmt version: 1.4.25-stable (0f29ff6d 2020-11-11)
  • From where did you install rustfmt?: rustup
@calebcartwright
Copy link
Member

Thanks for the report but closing as a duplicate of various issues (e.g. #4543), explained in #4355 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants