You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken link to unstable book in rustc_plugin API docs #57489
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
On Jan 10, 2019, at 3:08 AM, Felix Kohlgrüber ***@***.***> wrote:
The documentation of rustc_plugin links to the plugin feature in the unstable book, but that link is broken.
It points to:
https://doc.rust-lang.org/nightly/nightly-rustc/unstable-book/language-features/plugin.html
While the correct link would be:
https://doc.rust-lang.org/nightly/unstable-book/language-features/plugin.html
In the source, the link is relative:
../unstable-book/language-features/plugin.html
I'd be interested in fixing this, but I don't know whether a relative or absolute link is better in this situation.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
The rustc api documentation doesn't get build locally by default, right?
I could replace the relative link with ../../unstable-book/language-features/plugin.html which should work for the hosted paths I showed above, but I don't know whether this works for the local use-case as well. Do you have any suggestions?
@fkohlgrueber, I wasn't able to find the docs for rustc_plugin locally by default (using locate) so it seems likely that you're correct. It also seems quite likely that the path change you've proposed will work just as well for local installations, so I'd suggest going ahead and making a PR and then the reviewer(s) can comment on whether the solution is acceptable.
I tried to build rustc_plugin doc and the unstable book. The rustc_plugin doc lives at build/x86_64-unknown-linux-gnu/compiler-doc/rustc_plugin/index.html and the link which points to the local unstable book is build/x86_64-unknown-linux-gnu/doc/unstable-book/language-features/plugin.html. So the correct relative path is different from the online docs.
I'm new to Rust documentation. There might be something I'm missing here 😄
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Activity
steveklabnik commentedon Jan 10, 2019
fkohlgrueber commentedon Jan 11, 2019
The rustc api documentation doesn't get build locally by default, right?
I could replace the relative link with
../../unstable-book/language-features/plugin.htmlwhich should work for the hosted paths I showed above, but I don't know whether this works for the local use-case as well. Do you have any suggestions?submodules: update clippy from 1b89724 to 1838bfe
Merge branch 'master' into add-lints-aseert-checks
submodules: update clippy from 1b89724 to 1838bfe
polybuildr commentedon Mar 24, 2019
@fkohlgrueber, I wasn't able to find the docs for rustc_plugin locally by default (using
locate) so it seems likely that you're correct. It also seems quite likely that the path change you've proposed will work just as well for local installations, so I'd suggest going ahead and making a PR and then the reviewer(s) can comment on whether the solution is acceptable.agnxy commentedon Apr 14, 2019
I tried to build rustc_plugin doc and the unstable book. The rustc_plugin doc lives at
build/x86_64-unknown-linux-gnu/compiler-doc/rustc_plugin/index.htmland the link which points to the local unstable book isbuild/x86_64-unknown-linux-gnu/doc/unstable-book/language-features/plugin.html. So the correct relative path is different from the online docs.I'm new to Rust documentation. There might be something I'm missing here 😄
agnxy commentedon Apr 20, 2019
I created a PR for further discussion. The fix replaces the broken link with a correct absolute link as suggested in the comment.
Rollup merge of rust-lang#60131 - agnxy:doc-link, r=ehuss
submodules: update clippy from 1b89724 to 1838bfe