diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs index fa4b1d4fbfe..211921715b0 100644 --- a/src/librustdoc/doctest.rs +++ b/src/librustdoc/doctest.rs @@ -382,7 +382,7 @@ fn run_test( test: &str, crate_name: &str, line: usize, - rustdoc_options: RustdocTestOptions, + rustdoc_options: IndividualTestOptions, mut lang_string: LangString, no_run: bool, opts: &GlobalTestOptions, @@ -936,7 +936,7 @@ enum PartitionState { (before, after, crates) } -pub(crate) struct RustdocTestOptions { +pub(crate) struct IndividualTestOptions { test_builder: Option, test_builder_wrappers: Vec, is_json_unused_externs_enabled: bool, @@ -952,7 +952,7 @@ pub(crate) struct RustdocTestOptions { test_id: String, } -impl RustdocTestOptions { +impl IndividualTestOptions { fn new(options: &RustdocOptions, arg_file: &Path, test_id: String) -> Self { let outdir = if let Some(ref path) = options.persist_doctests { let mut path = path.clone(); @@ -1139,7 +1139,7 @@ fn add_test(&mut self, test: String, config: LangString, line: usize) { ); let rustdoc_test_options = - RustdocTestOptions::new(&self.rustdoc_options, &self.arg_file, test_id); + IndividualTestOptions::new(&self.rustdoc_options, &self.arg_file, test_id); debug!("creating test {name}: {test}"); self.tests.push(test::TestDescAndFn {