Skip to content

Commit

Permalink
Bring test of nightly in line with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo authored and alexcrichton committed May 9, 2017
1 parent 9bf9bdd commit 213a2bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cargo/ops/cargo_rustc/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
// ignore CARGO_INCREMENTAL on anything but nightly. This allows users
// to always have CARGO_INCREMENTAL set without getting unexpected
// errors on stable/beta builds.
let incremental_enabled = incremental_enabled
&& config.rustc()?.verbose_version.contains("nightly");
let is_nightly =
config.rustc()?.verbose_version.contains("-nightly") ||
config.rustc()?.verbose_version.contains("-dev");
let incremental_enabled = incremental_enabled && is_nightly;

Ok(Context {
ws: ws,
Expand Down

0 comments on commit 213a2bf

Please sign in to comment.