1
Fork 0

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.
This commit is contained in:
Matthias Krüger 2022-07-26 16:57:49 +02:00 committed by GitHub
commit dfaf6ec128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View file

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

View file

@ -466,7 +466,7 @@ Note that the third item is the crate root, which in this case is undocumented.
and is also accepted on stable toolchains.
It can also be used with `--show-coverage`. Take a look at its
[documentation](#--show-coverage-get-statistics-about-code-documentation-coverage) for more
[documentation](#--show-coverage-calculate-the-percentage-of-items-with-documentation) for more
information.
### `--enable-per-target-ignores`: allow `ignore-foo` style filters for doctests

View file

@ -348,11 +348,6 @@ impl Checker {
return;
}
// These appear to be broken in mdbook right now?
if fragment.starts_with('-') {
return;
}
parse_ids(&mut target_ids.borrow_mut(), &pretty_path, target_source, report);
if target_ids.borrow().contains(*fragment) {