Skip to content
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

intra-rustdoc links fail on primitive methods #58598

Closed
tspiteri opened this issue Feb 20, 2019 · 0 comments
Closed

intra-rustdoc links fail on primitive methods #58598

tspiteri opened this issue Feb 20, 2019 · 0 comments
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@tspiteri
Copy link
Contributor

I hit this in #58596.

For example, for this a.rs

//! [`Vec`] is fine.
//! [`Vec::len`] is fine.
//! [`char`] is fine.
//! [`char::len_utf8`] is not.

rustdoc +nightly a.rs produces

 --> a.rs:4:6
  |
4 | //! [`char::len_utf8`] is not.
  |      ^^^^^^^^^^^^^^^^ cannot be resolved, ignoring
  |
  = note: #[warn(intra_doc_link_resolution_failure)] on by default
  = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
@jonas-schievink jonas-schievink added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-bug Category: This is a bug. A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name labels Feb 20, 2019
Centril added a commit to Centril/rust that referenced this issue Feb 23, 2019
… r=GuillaumeGomez

rustdoc: support methods on primitives in intra-doc links

Fixes rust-lang#58598.
Centril added a commit to Centril/rust that referenced this issue Feb 23, 2019
… r=GuillaumeGomez

rustdoc: support methods on primitives in intra-doc links

Fixes rust-lang#58598.
Centril added a commit to Centril/rust that referenced this issue Feb 23, 2019
… r=GuillaumeGomez

rustdoc: support methods on primitives in intra-doc links

Fixes rust-lang#58598.
Centril added a commit to Centril/rust that referenced this issue Feb 23, 2019
… r=GuillaumeGomez

rustdoc: support methods on primitives in intra-doc links

Fixes rust-lang#58598.
Centril added a commit to Centril/rust that referenced this issue Feb 24, 2019
… r=GuillaumeGomez

rustdoc: support methods on primitives in intra-doc links

Fixes rust-lang#58598.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-intra-doc-links Area: Intra-doc links, the ability to link to items in docs by name C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants