X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustdoc%2Fconfig.rs;h=04bcade156a9d33f8f4fdbb822ec7050a463c694;hb=0fb1c371d4a14f9ce7a721d8aea683a6e6774f6c;hp=493aa56fce6efe061a2b12ba673628625ba88731;hpb=610b4e503ccc5cb6d4ef98bb5016ba42eaf94522;p=rust.git diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs index 493aa56fce6..04bcade156a 100644 --- a/src/librustdoc/config.rs +++ b/src/librustdoc/config.rs @@ -136,9 +136,6 @@ fn try_from(value: &str) -> Result { /// /// Be aware: This option can come both from the CLI and from crate attributes! crate manual_passes: Vec, - /// Whether to display warnings during doc generation or while gathering doctests. By default, - /// all non-rustdoc-specific lints are allowed when generating docs. - crate display_doctest_warnings: bool, /// Whether to run the `calculate-doc-coverage` pass, which counts the number of public items /// with and without documentation. crate show_coverage: bool, @@ -197,7 +194,6 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { .field("persist_doctests", &self.persist_doctests) .field("default_passes", &self.default_passes) .field("manual_passes", &self.manual_passes) - .field("display_doctest_warnings", &self.display_doctest_warnings) .field("show_coverage", &self.show_coverage) .field("crate_version", &self.crate_version) .field("render_options", &self.render_options) @@ -556,7 +552,7 @@ fn println_condition(condition: Condition) { )) .emit(); } - themes.push(StylePath { path: theme_file, disabled: true }); + themes.push(StylePath { path: theme_file }); } } @@ -639,7 +635,6 @@ fn println_condition(condition: Condition) { let proc_macro_crate = crate_types.contains(&CrateType::ProcMacro); let playground_url = matches.opt_str("playground-url"); let maybe_sysroot = matches.opt_str("sysroot").map(PathBuf::from); - let display_doctest_warnings = matches.opt_present("display-doctest-warnings"); let sort_modules_alphabetically = !matches.opt_present("sort-modules-by-appearance"); let resource_suffix = matches.opt_str("resource-suffix").unwrap_or_default(); let enable_minification = !matches.opt_present("disable-minification"); @@ -707,7 +702,6 @@ fn println_condition(condition: Condition) { test_args, default_passes, manual_passes, - display_doctest_warnings, show_coverage, crate_version, test_run_directory,