Skip to content

Commit dfaf6ec

Browse files
authored
Rollup merge of #99724 - ehuss:fix-broken-links-fragment, r=Dylan-DPC
Fix some broken link fragments. An exception for link fragments starting with `-` was added in #49590. However, it is not clear what issues were encountered at the time. Perhaps those were fixed in the meantime. This removes the exception, and fixes a couple of broken links that were skipped due to it.
2 parents ea299e8 + 91599b4 commit dfaf6ec

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/doc/rustdoc/src/deprecated-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ change in any release.
1010

1111
In the past the most common use case for customizing passes was to omit the `strip-private` pass.
1212
You can do this more easily, and without risk of the pass being changed, by passing
13-
[`--document-private-items`](./unstable-features.md#--document-private-items).
13+
[`--document-private-items`](command-line-arguments.md#--document-private-items-show-items-that-are-not-public).

src/doc/rustdoc/src/unstable-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ Note that the third item is the crate root, which in this case is undocumented.
466466
and is also accepted on stable toolchains.
467467

468468
It can also be used with `--show-coverage`. Take a look at its
469-
[documentation](#--show-coverage-get-statistics-about-code-documentation-coverage) for more
469+
[documentation](#--show-coverage-calculate-the-percentage-of-items-with-documentation) for more
470470
information.
471471

472472
### `--enable-per-target-ignores`: allow `ignore-foo` style filters for doctests

src/tools/linkchecker/main.rs

-5
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,6 @@ impl Checker {
348348
return;
349349
}
350350

351-
// These appear to be broken in mdbook right now?
352-
if fragment.starts_with('-') {
353-
return;
354-
}
355-
356351
parse_ids(&mut target_ids.borrow_mut(), &pretty_path, target_source, report);
357352

358353
if target_ids.borrow().contains(*fragment) {

0 commit comments

Comments
 (0)