-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add list of supported disambiguators and suffixes for intra-doc links in the rustdoc book #110348
Add list of supported disambiguators and suffixes for intra-doc links in the rustdoc book #110348
Conversation
cc @Manishearth , I remember last time I suggested adding this you thought having it in the error messages was enough. |
It's what I thought too and then I re-discovered the auto-disambiguation of trait and derive proc-macro and because of this, I think providing the list of disambiguators is now something we must provide. But even before that, providing the list of disambiguators seems like something we should provide just so that people aren't surprised when they see them. Having an "official list" is always a good thing imo. |
Here’s where the disambiguators are actually implemented: Perhaps add a comment there reminding anyone adding a new disambiguator to also update the book? |
Good idea! |
Added code comments. |
src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md
Outdated
Show resolved
Hide resolved
src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md
Outdated
Show resolved
Hide resolved
bef32f4
to
fbc7696
Compare
Updated as suggested. |
src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md
Outdated
Show resolved
Hide resolved
… in the rustdoc book
…y update the disambiguators list
fbc7696
to
1531c95
Compare
Applied suggestion. |
@bors r+ rollup |
…ixes-rustdoc-book, r=Manishearth Add list of supported disambiguators and suffixes for intra-doc links in the rustdoc book This information is otherwise only provided in case an error occurs, which isn't great. r? `@notriddle`
…ixes-rustdoc-book, r=Manishearth Add list of supported disambiguators and suffixes for intra-doc links in the rustdoc book This information is otherwise only provided in case an error occurs, which isn't great. r? ``@notriddle``
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#109981 (Set commit information environment variables when building tools) - rust-lang#110348 (Add list of supported disambiguators and suffixes for intra-doc links in the rustdoc book) - rust-lang#110409 (Don't use `serde_json` to serialize a simple JSON object) - rust-lang#110442 (Avoid including dry run steps in the build metrics) - rust-lang#110450 (rustdoc: Fix invalid handling of nested items with `--document-private-items`) - rust-lang#110461 (Use `Item::expect_*` and `ImplItem::expect_*` more) - rust-lang#110465 (Assure everyone that `has_type_flags` is fast) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This information is otherwise only provided in case an error occurs, which isn't great.
r? @notriddle