|
1 | 1 | use std::collections::hash_map::DefaultHasher; |
| 2 | +use std::env; |
2 | 3 | use std::hash::{Hash, Hasher}; |
3 | 4 | use std::path::Path; |
4 | 5 | use std::process::Command; |
5 | | -use std::env; |
6 | 6 |
|
7 | 7 | use rustc_version::VersionMeta; |
8 | 8 | use tempdir::TempDir; |
9 | 9 | use toml::{Table, Value}; |
10 | 10 |
|
11 | | -use CompilationMode; |
| 11 | +use cargo; |
12 | 12 | use cargo::Rustflags; |
| 13 | +use config::Config; |
13 | 14 | use errors::*; |
14 | 15 | use extensions::CommandExt; |
15 | 16 | use rustc::{Src, Sysroot, Target}; |
16 | 17 | use util; |
17 | 18 | use xargo::Home; |
18 | | -use cargo; |
19 | | -use config::Config; |
| 19 | +use CompilationMode; |
20 | 20 |
|
21 | 21 | #[cfg(feature = "dev")] |
22 | 22 | fn profile() -> &'static str { |
@@ -187,17 +187,12 @@ version = "0.0.0" |
187 | 187 | let mut compiler_builtin_dep = Table::new(); |
188 | 188 | compiler_builtin_dep.insert("path".to_owned(), Value::String(path)); |
189 | 189 |
|
190 | | - let mut features = vec![ |
191 | | - Value::String("compiler-builtins".to_owned()), |
192 | | - ]; |
| 190 | + let mut features = vec![Value::String("compiler-builtins".to_owned())]; |
193 | 191 | if config.memcpy { |
194 | 192 | features.push(Value::String("mem".to_owned())); |
195 | 193 | } |
196 | 194 | compiler_builtin_dep.insert("default-features".to_owned(), Value::Boolean(false)); |
197 | | - compiler_builtin_dep.insert( |
198 | | - "features".to_owned(), |
199 | | - Value::Array(features), |
200 | | - ); |
| 195 | + compiler_builtin_dep.insert("features".to_owned(), Value::Array(features)); |
201 | 196 | let mut deps = Table::new(); |
202 | 197 | deps.insert( |
203 | 198 | "compiler_builtins".to_owned(), |
|
0 commit comments