Skip to content

Rollup of 8 pull requests #121036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f0abcd9
unstable-book: add quick-edit link
tshepang Aug 16, 2023
ea4a36b
Fix handling of `doc_auto_cfg` feature for `cfg` attributes on glob r…
GuillaumeGomez Feb 1, 2024
48c4272
Add regression test for `doc_auto_cfg` feature handling with glob ree…
GuillaumeGomez Feb 1, 2024
7c32908
Extend "Attributes" section in the `re-exports` page
GuillaumeGomez Feb 1, 2024
faaf81b
Start blocks eagerly
Nadrieril Feb 12, 2024
173dbc9
Remove `TypeErrCtxt::drop`.
nnethercote Feb 12, 2024
9f2aa09
Remove `good_path_delayed_bug`.
nnethercote Feb 12, 2024
bbe2f6c
also try to normalize opaque types in alias-relate
lcnr Jan 29, 2024
3e3e207
use alias-relate to structurally normalize in the solver
lcnr Feb 1, 2024
e5541cf
add revisions
lcnr Feb 1, 2024
51a1000
one must imagine ci happy
lcnr Feb 8, 2024
412c86c
coverage: When merging spans, keep `prev` and merge `curr` into it
Zalathar Feb 13, 2024
5a569b1
coverage: Don't track `curr_original_span` explicitly
Zalathar Feb 13, 2024
1392f60
Extend intra-doc link chapter in the rustdoc book
GuillaumeGomez Feb 13, 2024
a618321
coverage: Split `CoverageSpan` into several distinct structs
Zalathar Feb 10, 2024
499609d
coverage: Move `prev_original_span` into `PrevCovspan`
Zalathar Feb 13, 2024
e67db4c
coverage: Simplify code for adding `prev` to pending dups
Zalathar Feb 13, 2024
14ec3b6
RustWrapper: adapt for coverage mapping API changes
TimNN Feb 13, 2024
f566a25
Rollup merge of #114877 - tshepang:patch-1, r=Dylan-DPC
matthiaskrgr Feb 13, 2024
5d9c899
Rollup merge of #120548 - GuillaumeGomez:glob-reexport-cfg-merge, r=G…
matthiaskrgr Feb 13, 2024
65ab663
Rollup merge of #120549 - lcnr:errs-showcase, r=compiler-errors
matthiaskrgr Feb 13, 2024
93e9579
Rollup merge of #120959 - nnethercote:rm-good_path, r=oli-obk
matthiaskrgr Feb 13, 2024
b785fdb
Rollup merge of #120978 - Nadrieril:sane-blocks, r=matthewjasper
matthiaskrgr Feb 13, 2024
e36a7f4
Rollup merge of #121019 - Zalathar:covspans, r=oli-obk
matthiaskrgr Feb 13, 2024
cc171de
Rollup merge of #121021 - GuillaumeGomez:extend-intra-doc-link-chapte…
matthiaskrgr Feb 13, 2024
8dffa39
Rollup merge of #121031 - TimNN:lh-fix-20240213, r=durin42
matthiaskrgr Feb 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Extend intra-doc link chapter in the rustdoc book
GuillaumeGomez committed Feb 13, 2024
commit 1392f60dfdafa78729428fcb42332e6d594d4692
Original file line number Diff line number Diff line change
@@ -151,3 +151,21 @@ will be given, even if the link fails to resolve. For example, any link containi
characters will be ignored.

[#72243]: https://github.com/rust-lang/rust/issues/72243

## What happens in case an intra-doc link cannot be generated

In some cases (items behind a `cfg` for example), an intra-doc link cannot be generated to item.
There are different ways to create a link in markdown, and depending on the one you use, it will
render differently in this case:

```md
1. [a]
2. [b][c]
3. [d](e)
4. [f]

[f]: g
```

`1.` and `2.` will will be displayed as is in the rendered documentation (ie, `[a]` and `[b][c]`)
whereas `3.` and `4.` will be replaced by a link targetting `e` for `[d](e)` and `g` for `[f]`.