-
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
Revert behaviour change for bootstrap doc command #113123
Revert behaviour change for bootstrap doc command #113123
Conversation
This comment has been minimized.
This comment has been minimized.
…ocumentation for the crate and its deps again
a3d5d8b
to
0ca4bb4
Compare
And of course I forgot to run |
i don't think we should do this. |
I don't want all crates, I want |
ok. for that you can use |
by the way, the previous behavior was to document all library crates, so reverting the PR still won't get you what you want. |
That's much longer than it used to.
No, the previous behaviour is exactly the same as the one I put here: I enter a crate name and it stops documenting crates when it finds this name. Which is why the order of names in the constant is important (as mentioned in the comment). I wrote it this way intentionally and I'd like to put back this behaviour if possible. It's not the first time the behaviour of bootstrap changes and we discover it afterwards. It'd be nice that the impacted teams are notified of this so they understand why the change is needed and what's the new syntax. In this case, I don't understand the logic behind it except for adding |
So if this is reverted then I'm wondering how I would document only a single crate? |
You can't with this reversal. Why do you want only one crate btw? What's your use case? |
It's usually how I check doc changes to std now. It'd be kinda cool if I could only preview the specific page(s) I'm interested in but failing that the whole crate is good enough. |
It adds around 3 extra seconds on my computer for documenting |
I'm sorry I didn't tag you on the original PR. This change affects more than just the rustdoc team, though (as Chris shows). I don't want to make the interface for |
on my laptop, |
For coherency sake, it might be better indeed... For me it takes 1 extra second to build the other two libs, so not an issue either. The only problems remaining are:
You also mentioned the use case from Chris, but it seems to be much more specific and less needed than the rustdoc team needs. Well in any case, I'm super annoyed that this behaviour I wrote on purpose was removed. If you don't plan to accept this revert, please just close the PR. |
Seems like we found sth that works for everyone. The takeaway: if in doubt, ping. unsubscribing is easy. |
I didn't understand your comment. In any case, the current state is not great because it changes the behaviour of a command used by the rustdoc and the alternative is not doing exactly the same. Not great, we'll see if problems come from that, although I doubt it. |
Worth pointing out: bootstrap is extremely confusing and inconsistent. Any attempt to fix that will lead to changes in current behavior that people may have formed habits around. It's worth trying to notice those changes and keep people informed, but that can only be best effort. In general changes in habit are a temporary thing and the benefits of consistency far outweigh the annoyances, so as such changes happen in the future I do think the right decision is to lean towards self-consistency rather than attempting to keep old behavior and workflows. Workflows can be changed, if something that was previously possible and necessary is no longer possible it's worth properly interrogating and perhaps designing something for that use case from first principles. |
Fixes #113101.
In #111955 and more precisely in 58e18dd, the behaviour for
x.py doc std
changed: before it was generating docs forcore
andalloc
alongsidestd
, after it was only generating docs forstd
.r? @jyn514