Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Enable nightly flag for cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu committed Sep 17, 2018
1 parent 2b21611 commit 58f69fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/project_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ impl ProjectModel {
pub fn load(ws_manifest: &Path, vfs: &Vfs) -> Result<ProjectModel, failure::Error> {
assert!(ws_manifest.ends_with("Cargo.toml"));
let mut config = Config::default()?;
// Enable nightly flag for cargo(see #1043)
cargo::core::enable_nightly_features();
// frozen = false, locked = false
config.configure(0, Some(true), &None, false, false, &None, &[])?;
let ws = Workspace::new(&ws_manifest, &config)?;
Expand Down

0 comments on commit 58f69fb

Please sign in to comment.