-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[beta API Doc] Broken links in fmt
module
#30477
Comments
This is an issue that affects beta as well, looking for the cause/a fix. |
This appears to be a rustdoc issue rather than a docs issue - documentation for all but two of the formatting traits have disappeared. |
If something disappeared from the docs, then it may be related to #30213 (or may be not). |
It seems like the formatting trait links were fixed in nightly. But the beta docs still have this issue. I will update the description. |
fmt
modulefmt
module
@brson @alexcrichton is this severe enough to justify a backport fix to beta? I'm not sure. |
This seems like a case where we'd want to backport the fix, but does anyone know exactly what that is yet? |
I'm ok backporting if somebody finds the fix. |
Could do a bisection to figure out what patch fixed it on nightly. |
I'm running a bisect now, let me know if you've already started doing that and I'll stop. Otherwise if you want I can take this off of you. |
Hrm, since I cannot reproduce that nightly actually fixes this issue for me locally, I have to retract my offer of fixing this. Currently looking for someone who would be able to tell me how exactly the docs on rust-lang are built and deployed :/ |
Ouch, this is annoying. Whether the files get built depends on configure arguments. Compiling the current nightly code with ./configure without --release-channel argument (default is dev) or using =beta means this bug is present, building it with --release-channel=nightly fixes it. Building the current beta code with --release-channel=nightly also produces the files in std, which explains why my bisect attempts led to only "bad" commits. I'm currently bisecting between stable and beta, to figure out when using --release-channel=beta stopped producing the files. |
Ok, I'm not getting further here. The bisect gives non-deterministic results, at least in the way I'm doing my testing. This is what I did: git checkout . && git clean -fdx && git submodule update depending on the output of find (whether the file exists or not) I'm declaring a revision to be good or bad. But following this exact procedure, I have gotten both a "good" and a "bad" result for the commits 8bc43ed and 1099af7. I wonder if the current situation with beta being broken and nightly being fixed is mere coincidence, or if my testing methodology is flawed. |
So it might be that this bug is not fixed on nightly and it's just non-deterministic. @shahn was doing builds with -j so I wonder if parallelism is introducing something non-deterministic. |
I retried without -j now. I built the beta tag with --release-channel=beta for configure and a plain 'make'. Once I had the extra docs made. I ran the same thing again, they did not get created. |
Another observation, if they weren't built the first time even an explicit "make doc" does not build them |
Seeing as this is seems to be a problem with the rustdoc binary, I tried bisecting by installing nightlies through multirust and running rustdoc on libstd manually. Each build seems deterministic by itself, but which files are omitted changes between builds (I don't understand why only It seems that everything is fine up until 2015-11-26 and then 2015-11-27 onwards is broken. So the problem is likely somewhere in the range 1805bba...1727dee. That includes #30043 though so there are quite a lot of changes. |
The formatting trait links are broken (except for
Display
andUpperExp
): https://doc.rust-lang.org/nightly/std/fmt/#formatting-traitsUpdate: It seems like this was fixed on nighly. But the beta docs still have this issue.
And the link to
debug_struct
in thecore::Debug
doc seems broken, too: https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#examples (source: https://doc.rust-lang.org/nightly/src/core/fmt/mod.rs.html#359)The text was updated successfully, but these errors were encountered: