From 58f69fbed161a66f1864f25ba1b2fc85d728610b Mon Sep 17 00:00:00 2001 From: kngwyu Date: Fri, 7 Sep 2018 11:14:39 +0900 Subject: [PATCH] Enable nightly flag for cargo --- src/project_model.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/project_model.rs b/src/project_model.rs index e7720fd2d19..e8937387288 100644 --- a/src/project_model.rs +++ b/src/project_model.rs @@ -44,6 +44,8 @@ impl ProjectModel { pub fn load(ws_manifest: &Path, vfs: &Vfs) -> Result { 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)?;