fix some small compile errors
This commit is contained in:
parent
320fdaa942
commit
c1d8aa829c
3 changed files with 5 additions and 4 deletions
|
@ -2456,6 +2456,7 @@ mod tests {
|
||||||
use super::{Externs, OutputType, OutputTypes};
|
use super::{Externs, OutputType, OutputTypes};
|
||||||
use rustc_back::{PanicStrategy, RelroLevel};
|
use rustc_back::{PanicStrategy, RelroLevel};
|
||||||
use syntax::symbol::Symbol;
|
use syntax::symbol::Symbol;
|
||||||
|
use syntax::edition::{Edition, DEFAULT_EDITION};
|
||||||
use syntax;
|
use syntax;
|
||||||
|
|
||||||
fn optgroups() -> getopts::Options {
|
fn optgroups() -> getopts::Options {
|
||||||
|
@ -3105,7 +3106,7 @@ mod tests {
|
||||||
fn test_edition_parsing() {
|
fn test_edition_parsing() {
|
||||||
// test default edition
|
// test default edition
|
||||||
let options = super::basic_options();
|
let options = super::basic_options();
|
||||||
assert!(options.edition == Edition::DEFAULT_EDITION);
|
assert!(options.edition == DEFAULT_EDITION);
|
||||||
|
|
||||||
let matches = optgroups()
|
let matches = optgroups()
|
||||||
.parse(&["--edition=2018".to_string()])
|
.parse(&["--edition=2018".to_string()])
|
||||||
|
|
|
@ -155,10 +155,10 @@ pub fn run_core(search_paths: SearchPaths,
|
||||||
actually_rustdoc: true,
|
actually_rustdoc: true,
|
||||||
debugging_opts: config::DebuggingOptions {
|
debugging_opts: config::DebuggingOptions {
|
||||||
force_unstable_if_unmarked,
|
force_unstable_if_unmarked,
|
||||||
edition,
|
|
||||||
..config::basic_debugging_options()
|
..config::basic_debugging_options()
|
||||||
},
|
},
|
||||||
error_format,
|
error_format,
|
||||||
|
edition,
|
||||||
..config::basic_options().clone()
|
..config::basic_options().clone()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -80,9 +80,9 @@ pub fn run(input_path: &Path,
|
||||||
lint_cap: Some(::rustc::lint::Level::Allow),
|
lint_cap: Some(::rustc::lint::Level::Allow),
|
||||||
actually_rustdoc: true,
|
actually_rustdoc: true,
|
||||||
debugging_opts: config::DebuggingOptions {
|
debugging_opts: config::DebuggingOptions {
|
||||||
edition,
|
|
||||||
..config::basic_debugging_options()
|
..config::basic_debugging_options()
|
||||||
},
|
},
|
||||||
|
edition,
|
||||||
..config::basic_options().clone()
|
..config::basic_options().clone()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -223,9 +223,9 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
|
||||||
test: as_test_harness,
|
test: as_test_harness,
|
||||||
unstable_features: UnstableFeatures::from_environment(),
|
unstable_features: UnstableFeatures::from_environment(),
|
||||||
debugging_opts: config::DebuggingOptions {
|
debugging_opts: config::DebuggingOptions {
|
||||||
edition,
|
|
||||||
..config::basic_debugging_options()
|
..config::basic_debugging_options()
|
||||||
},
|
},
|
||||||
|
edition,
|
||||||
..config::basic_options().clone()
|
..config::basic_options().clone()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue