From: bors Date: Thu, 12 Oct 2017 08:52:44 +0000 (+0000) Subject: Auto merge of #4314 - nodakai:phantom-type-in-projectbuilder, r=matklad X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~6^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5763451096449580e18eadcc9f62278b665f4276;p=cargo.git Auto merge of #4314 - nodakai:phantom-type-in-projectbuilder, r=matklad cargotest/support: remove internal mutability in favor of switching types `Cell` was removed from `ProjectBuilder`. Instead `PhantomData` was added to it (and `RepoBuilder`) to manage state transition in the type level (`T` is either `Configuring` or `Done`.) `ProjectBuilder::cargo_process()` was removed as its design heavily depended on the internal mutability. Also added `#[must_use]` to `ProjectBuilder` and `RepoBuilder` to check for call sites of their `build()` method. --- 5763451096449580e18eadcc9f62278b665f4276