]> git.proxmox.com Git - cargo.git/commit
Auto merge of #6818 - dtolnay:comma, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 3 Apr 2019 20:25:19 +0000 (20:25 +0000)
committerbors <bors@rust-lang.org>
Wed, 3 Apr 2019 20:25:19 +0000 (20:25 +0000)
commitd62dcd6af4ab4c43816b3d0659055f042a3d7061
treeac42b79529c648c64d0956d44fc8f29d4a1640d3
parentb9bba2dda784cfcd259f62bbd6aea91729f17496
parent1b10b701b5893b59da4912105587998f55bddab3
Auto merge of #6818 - dtolnay:comma, r=alexcrichton

Accept trailing comma in test of impl Debug for PackageId

The standard library is planning to begin emitting trailing commas in multiline Debug representations to align with the dominant style in modern Rust code -- https://github.com/rust-lang/rust/pull/59076.

```diff
  PackageId {
      name: "foo",
      version: "1.0.0",
-     source: "registry `https://github.com/rust-lang/crates.io-index`"
+     source: "registry `https://github.com/rust-lang/crates.io-index`",
  }
```

For now, change this tests to accept both with and without trailing comma. Once the trailing comma change reaches the stable channel we will be able to remove one of the cases.