1
Fork 0

Auto merge of #50080 - klnusbaum:edition_49591, r=Manishearth

add --edition option

This adds an official `edition` flag to the rust compiler
This commit is contained in:
bors 2018-04-21 05:28:21 +00:00
commit 9af69fe232
8 changed files with 78 additions and 39 deletions

View file

@ -80,9 +80,9 @@ pub fn run(input_path: &Path,
lint_cap: Some(::rustc::lint::Level::Allow),
actually_rustdoc: true,
debugging_opts: config::DebuggingOptions {
edition,
..config::basic_debugging_options()
},
edition,
..config::basic_options().clone()
};
@ -223,9 +223,9 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
test: as_test_harness,
unstable_features: UnstableFeatures::from_environment(),
debugging_opts: config::DebuggingOptions {
edition,
..config::basic_debugging_options()
},
edition,
..config::basic_options().clone()
};