about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-03-23 15:00:37 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-03-23 15:00:37 +0100
commit773084ff2f337774c6bca54eba1b2e88d63465d3 (patch)
treec996e3b35bb671a620180bbbe45c185e5f94c919
parent86fe40021fdac50ed64e04cdae12f0156e5a8908 (diff)
downloadrust-773084ff2f337774c6bca54eba1b2e88d63465d3.tar.gz
rust-773084ff2f337774c6bca54eba1b2e88d63465d3.zip
Rename `RustdocTestOptions` into `IndividualTestOptions`
-rw-r--r--src/librustdoc/doctest.rs8
1 files changed, 4 insertions, 4 deletions
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 @@ fn partition_source(s: &str, edition: Edition) -> (String, String, String) {
     (before, after, crates)
 }
 
-pub(crate) struct RustdocTestOptions {
+pub(crate) struct IndividualTestOptions {
     test_builder: Option<PathBuf>,
     test_builder_wrappers: Vec<PathBuf>,
     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 @@ impl Tester for Collector {
         );
 
         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 {