Skip to content

Commit fc546b9

Browse files
Auto merge of #150645 - GuillaumeGomez:rename-rustdoc-tests, r=Kobzol,Zalathar
Rename `tests/rustdoc` into `tests/rustdoc-html` As discussed on [zulip](https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rename.20tests.2Frustdoc.20to.20rustdoc-html.3F/with/566142388), renaming this testsuite better reflects what they actually test. Later on, it could also allow us to add an alias to run all rustdoc tests at once. r? @camelid
2 parents 84c8442 + 8256623 commit fc546b9

File tree

1,081 files changed

+77
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,081 files changed

+77
-68
lines changed

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ignore = [
2121
"/tests/pretty/", # These tests are very sensitive to source code layout.
2222
"/tests/run-make/export", # These tests contain syntax errors.
2323
"/tests/run-make/translation/test.rs", # This test contains syntax errors.
24-
"/tests/rustdoc/", # Some have syntax errors, some are whitespace-sensitive.
24+
"/tests/rustdoc-html/", # Some have syntax errors, some are whitespace-sensitive.
2525
"/tests/rustdoc-gui/", # Some tests are sensitive to source code layout.
2626
"/tests/rustdoc-ui/", # Some have syntax errors, some are whitespace-sensitive.
2727
"/tests/ui/", # Some have syntax errors, some are whitespace-sensitive.

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,10 +1582,10 @@ test!(UiFullDeps {
15821582
IS_HOST: true,
15831583
});
15841584

1585-
test!(Rustdoc {
1586-
path: "tests/rustdoc",
1587-
mode: CompiletestMode::Rustdoc,
1588-
suite: "rustdoc",
1585+
test!(RustdocHtml {
1586+
path: "tests/rustdoc-html",
1587+
mode: CompiletestMode::RustdocHtml,
1588+
suite: "rustdoc-html",
15891589
default: true,
15901590
IS_HOST: true,
15911591
});
@@ -1969,7 +1969,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
19691969
if matches!(
19701970
mode,
19711971
CompiletestMode::RunMake
1972-
| CompiletestMode::Rustdoc
1972+
| CompiletestMode::RustdocHtml
19731973
| CompiletestMode::RustdocJs
19741974
| CompiletestMode::RustdocJson
19751975
) || matches!(suite, "rustdoc-ui" | "coverage-run-rustdoc")
@@ -2758,7 +2758,7 @@ impl Step for ErrorIndex {
27582758
fn make_run(run: RunConfig<'_>) {
27592759
// error_index_generator depends on librustdoc. Use the compiler that
27602760
// is normally used to build rustdoc for other tests (like compiletest
2761-
// tests in tests/rustdoc) so that it shares the same artifacts.
2761+
// tests in tests/rustdoc-html) so that it shares the same artifacts.
27622762
let compilers = RustcPrivateCompilers::new(
27632763
run.builder,
27642764
run.builder.top_stage,
@@ -3159,7 +3159,7 @@ impl Step for CrateRustdoc {
31593159
builder.compiler(builder.top_stage, target)
31603160
} else {
31613161
// Use the previous stage compiler to reuse the artifacts that are
3162-
// created when running compiletest for tests/rustdoc. If this used
3162+
// created when running compiletest for tests/rustdoc-html. If this used
31633163
// `compiler`, then it would cause rustdoc to be built *again*, which
31643164
// isn't really necessary.
31653165
builder.compiler_for(builder.top_stage, target, target)

src/bootstrap/src/core/build_steps/test/compiletest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub(crate) enum CompiletestMode {
2121
MirOpt,
2222
Pretty,
2323
RunMake,
24-
Rustdoc,
24+
RustdocHtml,
2525
RustdocJs,
2626
RustdocJson,
2727
Ui,
@@ -49,7 +49,7 @@ impl CompiletestMode {
4949
Self::MirOpt => "mir-opt",
5050
Self::Pretty => "pretty",
5151
Self::RunMake => "run-make",
52-
Self::Rustdoc => "rustdoc",
52+
Self::RustdocHtml => "rustdoc-html",
5353
Self::RustdocJs => "rustdoc-js",
5454
Self::RustdocJson => "rustdoc-json",
5555
Self::Ui => "ui",

src/bootstrap/src/core/builder/cli_paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ pub(crate) const PATH_REMAP: &[(&str, &[&str])] = &[
3131
"tests/pretty",
3232
"tests/run-make",
3333
"tests/run-make-cargo",
34-
"tests/rustdoc",
3534
"tests/rustdoc-gui",
35+
"tests/rustdoc-html",
3636
"tests/rustdoc-js",
3737
"tests/rustdoc-js-std",
3838
"tests/rustdoc-json",

src/bootstrap/src/core/builder/cli_paths/snapshots/x_test.snap

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
source: src/bootstrap/src/core/builder/cli_paths/tests.rs
3-
assertion_line: 68
43
expression: test
54
---
65
[Test] test::Tidy
@@ -38,9 +37,9 @@ expression: test
3837
[Test] test::UiFullDeps
3938
targets: [x86_64-unknown-linux-gnu]
4039
- Suite(test::tests/ui-fulldeps)
41-
[Test] test::Rustdoc
40+
[Test] test::RustdocHtml
4241
targets: [x86_64-unknown-linux-gnu]
43-
- Suite(test::tests/rustdoc)
42+
- Suite(test::tests/rustdoc-html)
4443
[Test] test::CoverageRunRustdoc
4544
targets: [x86_64-unknown-linux-gnu]
4645
- Suite(test::tests/coverage-run-rustdoc)

src/bootstrap/src/core/builder/cli_paths/snapshots/x_test_librustdoc_rustdoc.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ expression: test librustdoc rustdoc
55
[Test] test::CrateRustdoc
66
targets: [x86_64-unknown-linux-gnu]
77
- Set({test::src/librustdoc, test::src/tools/rustdoc})
8-
[Test] test::Rustdoc
9-
targets: [x86_64-unknown-linux-gnu]
10-
- Suite(test::tests/rustdoc)
118
[Test] test::RustdocBook
129
targets: [x86_64-unknown-linux-gnu]
1310
- Set({test::src/doc/rustdoc})
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
source: src/bootstrap/src/core/builder/cli_paths/tests.rs
3+
expression: test librustdoc rustdoc-html
4+
---
5+
[Test] test::CrateRustdoc
6+
targets: [x86_64-unknown-linux-gnu]
7+
- Set({test::src/librustdoc})
8+
[Test] test::RustdocHtml
9+
targets: [x86_64-unknown-linux-gnu]
10+
- Suite(test::tests/rustdoc-html)

src/bootstrap/src/core/builder/cli_paths/snapshots/x_test_rustdoc.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
source: src/bootstrap/src/core/builder/cli_paths/tests.rs
33
expression: test rustdoc
44
---
5-
[Test] test::Rustdoc
6-
targets: [x86_64-unknown-linux-gnu]
7-
- Suite(test::tests/rustdoc)
85
[Test] test::CrateRustdoc
96
targets: [x86_64-unknown-linux-gnu]
107
- Set({test::src/tools/rustdoc})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
source: src/bootstrap/src/core/builder/cli_paths/tests.rs
3+
expression: test rustdoc-html
4+
---
5+
[Test] test::RustdocHtml
6+
targets: [x86_64-unknown-linux-gnu]
7+
- Suite(test::tests/rustdoc-html)

src/bootstrap/src/core/builder/cli_paths/snapshots/x_test_skip_coverage.snap

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
source: src/bootstrap/src/core/builder/cli_paths/tests.rs
3-
assertion_line: 68
43
expression: test --skip=coverage
54
---
65
[Test] test::Tidy
@@ -37,9 +36,9 @@ expression: test --skip=coverage
3736
[Test] test::UiFullDeps
3837
targets: [x86_64-unknown-linux-gnu]
3938
- Suite(test::tests/ui-fulldeps)
40-
[Test] test::Rustdoc
39+
[Test] test::RustdocHtml
4140
targets: [x86_64-unknown-linux-gnu]
42-
- Suite(test::tests/rustdoc)
41+
- Suite(test::tests/rustdoc-html)
4342
[Test] test::CoverageRunRustdoc
4443
targets: [x86_64-unknown-linux-gnu]
4544
- Suite(test::tests/coverage-run-rustdoc)

0 commit comments

Comments
 (0)