Skip to content

backwards compatibility issue in the last month or so #3721

Closed
@nrc

Description

@nrc

Some time between 2019-06-14 and 2019-07-19, the default formatting changed, this breaks rustfmt's backwards compatibility guarantee.

I see two kinds of changes:

-            ConfChangeType::BeginMembershipChange | ConfChangeType::FinalizeMembershipChange => {
-                unimplemented!()
-            }
+            ConfChangeType::BeginMembershipChange | ConfChangeType::FinalizeMembershipChange => unimplemented!(),

and

-                Datum::Bytes(
-                    "НОЧЬ НА ОКРАИНЕ МОСКВЫ"
-                        .as_bytes()
-                        .to_vec(),
-                ),
+                Datum::Bytes("НОЧЬ НА ОКРАИНЕ МОСКВЫ".as_bytes().to_vec()),
+                Datum::Bytes("НОЧЬ НА ОКРАИНЕ МОСКВЫ".as_bytes().to_vec()),

The second seems to require >1 byte characters.

There are many more instances in https://github.com/tikv/tikv/pull/5137/files

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions