Skip to content

Commit c1d8aa8

Browse files
committed
fix some small compile errors
1 parent 320fdaa commit c1d8aa8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/librustc/session/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2456,6 +2456,7 @@ mod tests {
24562456
use super::{Externs, OutputType, OutputTypes};
24572457
use rustc_back::{PanicStrategy, RelroLevel};
24582458
use syntax::symbol::Symbol;
2459+
use syntax::edition::{Edition, DEFAULT_EDITION};
24592460
use syntax;
24602461

24612462
fn optgroups() -> getopts::Options {
@@ -3105,7 +3106,7 @@ mod tests {
31053106
fn test_edition_parsing() {
31063107
// test default edition
31073108
let options = super::basic_options();
3108-
assert!(options.edition == Edition::DEFAULT_EDITION);
3109+
assert!(options.edition == DEFAULT_EDITION);
31093110

31103111
let matches = optgroups()
31113112
.parse(&["--edition=2018".to_string()])

src/librustdoc/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ pub fn run_core(search_paths: SearchPaths,
155155
actually_rustdoc: true,
156156
debugging_opts: config::DebuggingOptions {
157157
force_unstable_if_unmarked,
158-
edition,
159158
..config::basic_debugging_options()
160159
},
161160
error_format,
161+
edition,
162162
..config::basic_options().clone()
163163
};
164164

src/librustdoc/test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ pub fn run(input_path: &Path,
8080
lint_cap: Some(::rustc::lint::Level::Allow),
8181
actually_rustdoc: true,
8282
debugging_opts: config::DebuggingOptions {
83-
edition,
8483
..config::basic_debugging_options()
8584
},
85+
edition,
8686
..config::basic_options().clone()
8787
};
8888

@@ -223,9 +223,9 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
223223
test: as_test_harness,
224224
unstable_features: UnstableFeatures::from_environment(),
225225
debugging_opts: config::DebuggingOptions {
226-
edition,
227226
..config::basic_debugging_options()
228227
},
228+
edition,
229229
..config::basic_options().clone()
230230
};
231231

0 commit comments

Comments
 (0)