Skip to content

Commit 213a2bf

Browse files
jonhooalexcrichton
authored andcommitted
Bring test of nightly in line with tests
1 parent 9bf9bdd commit 213a2bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cargo/ops/cargo_rustc/context.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
8888
// ignore CARGO_INCREMENTAL on anything but nightly. This allows users
8989
// to always have CARGO_INCREMENTAL set without getting unexpected
9090
// errors on stable/beta builds.
91-
let incremental_enabled = incremental_enabled
92-
&& config.rustc()?.verbose_version.contains("nightly");
91+
let is_nightly =
92+
config.rustc()?.verbose_version.contains("-nightly") ||
93+
config.rustc()?.verbose_version.contains("-dev");
94+
let incremental_enabled = incremental_enabled && is_nightly;
9395

9496
Ok(Context {
9597
ws: ws,

0 commit comments

Comments
 (0)