Skip to content

Commit

Permalink
fix some small compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
klnusbaum committed Apr 20, 2018
1 parent 320fdaa commit c1d8aa8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/librustc/session/config.rs
Expand Up @@ -2456,6 +2456,7 @@ mod tests {
use super::{Externs, OutputType, OutputTypes};
use rustc_back::{PanicStrategy, RelroLevel};
use syntax::symbol::Symbol;
use syntax::edition::{Edition, DEFAULT_EDITION};
use syntax;

fn optgroups() -> getopts::Options {
Expand Down Expand Up @@ -3105,7 +3106,7 @@ mod tests {
fn test_edition_parsing() {
// test default edition
let options = super::basic_options();
assert!(options.edition == Edition::DEFAULT_EDITION);
assert!(options.edition == DEFAULT_EDITION);

let matches = optgroups()
.parse(&["--edition=2018".to_string()])
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/core.rs
Expand Up @@ -155,10 +155,10 @@ pub fn run_core(search_paths: SearchPaths,
actually_rustdoc: true,
debugging_opts: config::DebuggingOptions {
force_unstable_if_unmarked,
edition,
..config::basic_debugging_options()
},
error_format,
edition,
..config::basic_options().clone()
};

Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/test.rs
Expand Up @@ -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()
};

Expand Down Expand Up @@ -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()
};

Expand Down

0 comments on commit c1d8aa8

Please sign in to comment.