X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustdoc%2Ftest.rs;h=d8e382f6998ceb1b66e108d7770a04c8feabe92f;hb=aa1e6db70900cf5d11a843bc4234de0548677aba;hp=650a2408aa6edba9d60ab6e73d67902ff8cc4e3a;hpb=7a23b5dec33d615a55f1cc6ca339fcd5ada1cab2;p=rust.git diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index 650a2408aa6..d8e382f6998 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -73,7 +73,7 @@ pub fn run(input_path: &Path, maybe_sysroot: maybe_sysroot.clone().or_else( || Some(env::current_exe().unwrap().parent().unwrap().parent().unwrap().to_path_buf())), search_paths: libs.clone(), - crate_types: vec![config::CrateTypeDylib], + crate_types: vec![config::CrateType::Dylib], cg: cg.clone(), externs: externs.clone(), unstable_features: UnstableFeatures::from_environment(), @@ -83,7 +83,7 @@ pub fn run(input_path: &Path, ..config::basic_debugging_options() }, edition, - ..config::basic_options().clone() + ..config::Options::default() }; driver::spawn_thread_pool(sessopts, |sessopts| { let codemap = Lrc::new(CodeMap::new(sessopts.file_path_mapping())); @@ -216,7 +216,7 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize, maybe_sysroot: maybe_sysroot.or_else( || Some(env::current_exe().unwrap().parent().unwrap().parent().unwrap().to_path_buf())), search_paths: libs, - crate_types: vec![config::CrateTypeExecutable], + crate_types: vec![config::CrateType::Executable], output_types: outputs, externs, cg: config::CodegenOptions { @@ -230,7 +230,7 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize, ..config::basic_debugging_options() }, edition, - ..config::basic_options().clone() + ..config::Options::default() }; // Shuffle around a few input and output handles here. We're going to pass