-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Don't build rustdoc in more than one stage #59844
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
Don't build rustdoc in more than one stage #59844
Conversation
This might not pass CI -- I've not thoroughly tested -- but it'll give us information on the failures which we can then fix. I think I've fixed the case we know about, though. |
Hm this doesn't feel quite right because in theory we should be able to request documentation from any stage of rustdoc, but is it a bug that stage1 docs are requested somewhere or something like that? |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Hm, yeah, now that I think a little more about it I think that this change is wrong. We should be using the requested stage, not just stage 2. (To be clear, prior to #58897, we would always use top_stage for rustdoc which then did the right thing for documentation as well). I'll look into the relevant fix (and what caused CI to fail). |
This prevents silent regressions where rustdoc is accidentally compiled in more than one stage. We should always be building it just once (likely in the final stage).
There's no reason to prefer stage 1 when building docs
4e6792f
to
39f93a2
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
ping from triage @Mark-Simulacrum tests are failing can you address that? |
This also introduces a check that if we're attempting to build rustdoc in more than one stage we bail out and abort the build. It shouldn't ever be necessary to do so within one build (it may be necessary locally, primarily, where you don't want a full stage 2 compiler), so just bail out if it happens.
r? @alexcrichton