mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Auto merge of #6448 - dwijnand:upgrade-the-metabuild-to-rust-2018, r=ehuss
Upgrade the metabuild to Rust 2018 Just happened across the code that @ehuss mentioned in https://github.com/rust-lang/cargo/pull/6423#issuecomment-446807216 and thought of reviving that effort. @ehuss says there's no reason to. Let's see if it passes CI and we should land this change or not.
This commit is contained in:
commit
db0bb7f7cd
@ -571,7 +571,7 @@ fn prepare_metabuild<'a, 'cfg>(
|
||||
})
|
||||
.collect();
|
||||
for dep in &meta_deps {
|
||||
output.push(format!("extern crate {};\n", dep));
|
||||
output.push(format!("use {};\n", dep));
|
||||
}
|
||||
output.push("fn main() {\n".to_string());
|
||||
for dep in &meta_deps {
|
||||
|
@ -638,7 +638,7 @@ impl Target {
|
||||
for_host: true,
|
||||
benched: false,
|
||||
tested: false,
|
||||
..Target::new(TargetSourcePath::Metabuild, Edition::Edition2015)
|
||||
..Target::new(TargetSourcePath::Metabuild, Edition::Edition2018)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user