about summary refs log tree commit diff
path: root/tests/coverage/branch/while.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2025-03-30 11:19:07 +0200
committerMara Bos <m-ou.se@m-ou.se>2025-03-30 11:21:51 +0200
commitd035ca7db384e125d1a5110cefb3872386fa692f (patch)
treee56d65113c81fa35dbbe2f71e91599fdb7a40267 /tests/coverage/branch/while.rs
parent5cc60728e7ee10eb2ae5f61f7d412d9805b22f0c (diff)
downloadrust-d035ca7db384e125d1a5110cefb3872386fa692f.tar.gz
rust-d035ca7db384e125d1a5110cefb3872386fa692f.zip
Improve hir_pretty for struct expressions.
Before:

    let a =
        StructWithSomeFields{
            field_1: 1,

            field_2: 2,

            field_3: 3,

            field_4: 4,

            field_5: 5,

            field_6: 6,};

    let a = StructWithSomeFields{ field_1: 1,  field_2: 2, ..a};

After:

    let a =
        StructWithSomeFields {
            field_1: 1,
            field_2: 2,
            field_3: 3,
            field_4: 4,
            field_5: 5,
            field_6: 6 };

    let a = StructWithSomeFields { field_1: 1, field_2: 2, ..a };
Diffstat (limited to 'tests/coverage/branch/while.rs')
0 files changed, 0 insertions, 0 deletions