Skip to content

Commit 773084f

Browse files
Rename RustdocTestOptions into IndividualTestOptions
1 parent 86fe400 commit 773084f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustdoc/doctest.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ fn run_test(
382382
test: &str,
383383
crate_name: &str,
384384
line: usize,
385-
rustdoc_options: RustdocTestOptions,
385+
rustdoc_options: IndividualTestOptions,
386386
mut lang_string: LangString,
387387
no_run: bool,
388388
opts: &GlobalTestOptions,
@@ -936,7 +936,7 @@ fn partition_source(s: &str, edition: Edition) -> (String, String, String) {
936936
(before, after, crates)
937937
}
938938

939-
pub(crate) struct RustdocTestOptions {
939+
pub(crate) struct IndividualTestOptions {
940940
test_builder: Option<PathBuf>,
941941
test_builder_wrappers: Vec<PathBuf>,
942942
is_json_unused_externs_enabled: bool,
@@ -952,7 +952,7 @@ pub(crate) struct RustdocTestOptions {
952952
test_id: String,
953953
}
954954

955-
impl RustdocTestOptions {
955+
impl IndividualTestOptions {
956956
fn new(options: &RustdocOptions, arg_file: &Path, test_id: String) -> Self {
957957
let outdir = if let Some(ref path) = options.persist_doctests {
958958
let mut path = path.clone();
@@ -1139,7 +1139,7 @@ impl Tester for Collector {
11391139
);
11401140

11411141
let rustdoc_test_options =
1142-
RustdocTestOptions::new(&self.rustdoc_options, &self.arg_file, test_id);
1142+
IndividualTestOptions::new(&self.rustdoc_options, &self.arg_file, test_id);
11431143

11441144
debug!("creating test {name}: {test}");
11451145
self.tests.push(test::TestDescAndFn {

0 commit comments

Comments
 (0)