Skip to content

Commit e881e3b

Browse files
committed
Upgrade the metabuild to Rust 2018
1 parent ff7f2bc commit e881e3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/core/compiler/custom_build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ fn prepare_metabuild<'a, 'cfg>(
571571
})
572572
.collect();
573573
for dep in &meta_deps {
574-
output.push(format!("extern crate {};\n", dep));
574+
output.push(format!("use {};\n", dep));
575575
}
576576
output.push("fn main() {\n".to_string());
577577
for dep in &meta_deps {

src/cargo/core/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ impl Target {
638638
for_host: true,
639639
benched: false,
640640
tested: false,
641-
..Target::new(TargetSourcePath::Metabuild, Edition::Edition2015)
641+
..Target::new(TargetSourcePath::Metabuild, Edition::Edition2018)
642642
}
643643
}
644644

0 commit comments

Comments
 (0)