-
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
Broken links in BTreeSet struct documentation #32130
Comments
The same problem also causes the link |
@alexcrichton is there anything left to be done here, i can help the rest |
@phungleson if you can delete these lines and have this command work:
Then there's no more work to do! (other than deleting that block) |
Thanks @alexcrichton seems like I have to make some fixes I got a lot of |
While I am here, I wonder if I should format the docs here https://github.com/rust-lang/rust/blob/bae454edc5e18e81b831baf4a7647bf2dda620a8/src/libcollections/btree/map.rs to fit in 80 columns. Currently it is quite hard to read properly. |
Sorry for my noob question, every time, I change something and run I wonder if there is any less painful way to make changes and test in rust? |
Hm, that seems bad; I was recently doing this, and it didn't have to do a
full recompile. Was more like 30 seconds each time. Wonder if you've hit a
rustbuild bug?
…On Sun, Feb 12, 2017 at 5:08 AM, Son ***@***.***> wrote:
Sorry for my noop question, every time, I change something and run ./x.py
test src/tools/linkchecker the whole rustc get re-complied again and it
took at least 15' to 30' to run the thing.
I wonder if there is any less painful way to make changes and test in rust?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#32130 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABsinv0I6rLR3llLhdo-u5RAd9QTwj2ks5rbtoFgaJpZM4HsJlf>
.
|
@phungleson you may want to pass Alternatively if you're just changing documentation then after you modify a file you can just use |
Hey thanks guys, Wonder why I think it is not fixed yet? and what is the correct place things should be? Thanks |
Oh yeah I don't think this is fixed yet, hence the bug :) |
@alexcrichton which one should we keep, I can dig a bit but might be faster if you know where it is. Thanks! |
Nah unfortunately the details here are pretty out of cache for me :( |
This problem also occurs in compiler docs (now built in #46278), where |
Add compiler docs testing to CI. Fixes #47025. I don't know if `x86_64-gnu` is the right builder for this, but there seems to be time left on [Travis](https://travis-ci.org/rust-lang/rust/jobs/307488864). Remaining problems blocking this PR: - [x] broken links caused by rustdoc issues: - [x] `pub use self::Enum::...`: #46766 and #46767 (fixed by #47050, thanks @ollie27!) - [x] `impl Deref for DerefToStdType`: #32129 (ignored in linkchecker) - [x] `#[feature(decl_macro)]` and `use std::vec`: #47038 (ignored in linkchecker) - [x] `rustc_data_structures::sync::{Lrc, RwLock}` aliases `std` types: #32130 (ignored in linkchecker) - [x] markdown differences, in rust repository and in external crates, now failing the build with #46880 merged (all fixed) - [x] multiple crate updates needed: `rand`, `log`, `parking_lot_core`, `flate2` - [x] submodule updates needed to deduplicate dependencies: `rust-installer`, ~`cargo`~ (done by #47052) - [x] #44953 test broken by `log` update (removed, this can be controversial) - [x] Waiting `x86_64-gnu` build results ([done](https://travis-ci.org/rust-lang/rust/builds/323451069)) See individual commits for more details.
Use intra-doc links in `str` and `BTreeSet` Fixes rust-lang#32129, fixes rust-lang#32130 A _slight_ degradation in quality is that the `#method.foo` links would previously link to the same page on `String`'s documentation, and now they will navigate to `str`. Not a big deal IMO, and we can also try to improve that.
Use intra-doc links in `str` and `BTreeSet` Fixes rust-lang#32129, fixes rust-lang#32130 A _slight_ degradation in quality is that the `#method.foo` links would previously link to the same page on `String`'s documentation, and now they will navigate to `str`. Not a big deal IMO, and we can also try to improve that.
Reopening until the exclusions in the link checker can be removed. |
More intra-doc links, add explicit exception list to linkchecker Fixes the broken links behind rust-lang#32553 Progress on rust-lang#32130 and rust-lang#32129 except for a small number of links. Instead of whitelisting entire files, I've changed the code to whitelist specific links in specific files, and added a comment requesting people explain the reasons they add exceptions. I'm not sure if we should close those issues in favor of the already filed intra-doc link issues.
I wrote this in a commit message no one will read, so pasting here for visibility: BTreeMap wants to link to the docs in std::collections, which are very detailed, and not alloc::collections, which is almost empty. But alloc is a dependency of std, so it's not possible to link to it across crates (#74481). What we could do instead is have the same documentation in both (I suggested a while ago making HashMap available in alloc, but there wasn't a clear consensus on how to do that: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Why.20is.20HashMap.20in.20std.20and.20not.20alloc.3F) |
Triage: this is almost working, these are the last broken links left in the standard library: rust/src/tools/linkchecker/main.rs Lines 33 to 40 in 010c236
|
I'm going to mark this as a standard library bug; the rustdoc half of it is tracked at #74481. |
Closing this as the exclusions are tracked in #74481 |
There are broken links when looking at the
BTreeSet
structure. This happens because the structure can be viewed from two locations, both at varying depths of links so the relative links may or may not work:std::collections::BTreeSet
- workingstd::collections::btree_set::BTreeSet
- not workingThe text was updated successfully, but these errors were encountered: