diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2025-06-07 19:00:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-07 19:00:46 +0200 |
| commit | 76b2ef2510060f516e015c3cacf250f0ea7fcebb (patch) | |
| tree | 539800e48cae8c311f66fd172d9bfbd0c4f9faed /src | |
| parent | f56cf01ca7259640db63618f4b4f104189b288c1 (diff) | |
| parent | f6270d2d928da4fef180ed33850620538b6205ac (diff) | |
| download | rust-76b2ef2510060f516e015c3cacf250f0ea7fcebb.tar.gz rust-76b2ef2510060f516e015c3cacf250f0ea7fcebb.zip | |
Merge pull request #2458 from fmease/followup-type-rustdoc-test-suite
Follow up: Fix typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/rustdoc-internals/rustdoc-test-suite.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/rustdoc-internals/rustdoc-test-suite.md b/src/doc/rustc-dev-guide/src/rustdoc-internals/rustdoc-test-suite.md index 5d8727dc5eb..b05318ce9e6 100644 --- a/src/doc/rustc-dev-guide/src/rustdoc-internals/rustdoc-test-suite.md +++ b/src/doc/rustc-dev-guide/src/rustdoc-internals/rustdoc-test-suite.md @@ -151,7 +151,7 @@ Here are some details that are relevant to this test suite specifically: * While you can use both `//@ compile-flags` and `//@ doc-flags` to pass flags to `rustdoc`, prefer to user the latter to show intent. The former is meant for `rustc`. * Add `//@ build-aux-docs` to the test file that has auxiliary crates to not only compile the - auxiliaries with `rustc` but to also document them with `rustdoc` + auxiliaries with `rustc` but to also document them with `rustdoc`. ## Caveats @@ -161,8 +161,9 @@ It's not unusual that the *shape* of the generated HTML document tree changes fr This includes for example renamings of CSS classes. Whenever that happens, *positive* checks will either continue to match the intended element / -attribute / text if their XPath expression is general / loose enough and thus test the correct thing -or they won't in which case they would fail forcing the author of the change tolook at them. +attribute / text (if their XPath expression is general / loose enough) and +thus continue to test the correct thing or they won't in which case they would fail thereby +forcing the author of the change to look at them. Compare that to *negative* checks (e.g., `//@ !has PATH XPATH PATTERN`) which won't fail if their XPath expression "no longer" matches. The author who changed "the shape" thus won't get notified and |
