-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Broken link to unstable book in rustc_plugin API docs #57489
Comments
Relative links are best, as they work offline without a web server.
… 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 |
Changes: ```` Fixing typo in CONTRIBUTING.md Fix breakage due to rust-lang#57651 Run rustfmt Fixed breakage due to rust-lang#57489 Fix breakage due to rust-lang#57755 Catch up with `format_args` change Fix bad `while_let_on_iterator` suggestion. rustup rust-lang#57747 Fixing issues pointed out by dogfood tests. Update to collect all the files then throw the error. Adding a test for checking if test files are missing. Remove bors.toml add applicability to lint name suggestion ````
* master: (58 commits) Rustfmt all the things Don't make decisions on values that don't represent the decision Improving comments. Rustup Added rustfix to the test. Improve span shortening. Added "make_return" and "blockify" convenience methods in Sugg and used them in "needless_bool". Actually check for constants. Fixed potential mistakes with nesting. Added tests. formatting fix Update clippy_lints/src/needless_bool.rs formatting fix Fixing typo in CONTRIBUTING.md Fix breakage due to rust-lang/rust#57651 needless bool lint suggestion is wrapped in brackets if it is an "else" clause of an "if-else" statement Fix automatic suggestion on `use_self`. Remove negative integer literal checks. Fix `implicit_return` false positives. Run rustfmt Fixed breakage due to rust-lang/rust#57489 ...
Changes: ```` Fixing typo in CONTRIBUTING.md Fix breakage due to rust-lang#57651 Run rustfmt Fixed breakage due to rust-lang#57489 Fix breakage due to rust-lang#57755 Catch up with `format_args` change Fix bad `while_let_on_iterator` suggestion. rustup rust-lang#57747 Fixing issues pointed out by dogfood tests. Update to collect all the files then throw the error. Adding a test for checking if test files are missing. Remove bors.toml add applicability to lint name suggestion ````
@fkohlgrueber, I wasn't able to find the docs for rustc_plugin locally by default (using |
I tried to build rustc_plugin doc and the unstable book. The rustc_plugin doc lives at |
I created a PR for further discussion. The fix replaces the broken link with a correct absolute link as suggested in the comment. |
Fix broken link in rustc_plugin doc fix rust-lang#57489 r? @steveklabnik
Changes: ```` Fixing typo in CONTRIBUTING.md Fix breakage due to rust-lang/rust#57651 Run rustfmt Fixed breakage due to rust-lang/rust#57489 Fix breakage due to rust-lang/rust#57755 Catch up with `format_args` change Fix bad `while_let_on_iterator` suggestion. rustup rust-lang/rust#57747 Fixing issues pointed out by dogfood tests. Update to collect all the files then throw the error. Adding a test for checking if test files are missing. Remove bors.toml add applicability to lint name suggestion ````
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.
The text was updated successfully, but these errors were encountered: