Skip to content
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

pass --lib to x doc #112211

Merged
merged 1 commit into from
Jun 3, 2023
Merged

Conversation

eval-exec
Copy link
Contributor

This PR want to close #112082

@rustbot
Copy link
Collaborator

rustbot commented Jun 2, 2023

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ozkanonur (or someone else) soon.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jun 2, 2023
Copy link
Member

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix.

Can you update the following as well?

// src/bootstrap/bin/{rustc.rs,rustdoc.rs}

@onur-ozkan
Copy link
Member

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 2, 2023
@eval-exec eval-exec force-pushed the exec/fix-bootstrap-rustdoc branch from 0373f55 to a07b250 Compare June 2, 2023 16:38
@eval-exec
Copy link
Contributor Author

eval-exec commented Jun 2, 2023

r? @jyn514 @ozkanonur

@jyn514 @ozkanonur Request for your review 💟

@rustbot review

@rustbot rustbot assigned jyn514 and unassigned onur-ozkan Jun 2, 2023
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 2, 2023
@eval-exec eval-exec marked this pull request as ready for review June 2, 2023 16:40
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 2, 2023
@jyn514
Copy link
Member

jyn514 commented Jun 2, 2023

I'm short on time for reviews, please don't assign me.

@jyn514 jyn514 assigned onur-ozkan and unassigned jyn514 Jun 2, 2023
@eval-exec
Copy link
Contributor Author

Question: How can I build this page on my localhost? I want to view these crates doc on my branch.

@jyn514
Copy link
Member

jyn514 commented Jun 2, 2023

@eval-exec try x doc --stage 0 bootstrap rustdoc

@onur-ozkan
Copy link
Member

r? @jyn514 @ozkanonur

@jyn514 @ozkanonur Request for your review heart_decoration

@rustbot review

jfyi: In most cases, we do not reassign the reviewer unless there is a specific reason to do so :)

src/bootstrap/Cargo.toml Outdated Show resolved Hide resolved
@eval-exec eval-exec force-pushed the exec/fix-bootstrap-rustdoc branch 2 times, most recently from 927d5e6 to 57287ae Compare June 2, 2023 17:39
@onur-ozkan
Copy link
Member

If things goes more complicated than we expected, we can implement the first solution which was pass --lib to cargo so it doesn't try to document the binaries

@rust-log-analyzer

This comment has been minimized.

@eval-exec
Copy link
Contributor Author

eval-exec commented Jun 2, 2023

If things goes more complicated than we expected, we can implement the first solution which was pass --lib to cargo so it doesn't try to document the binaries

It's hard, rustdoc's doc is still as same as rustdoc-shim
image
image

I'd like to pass --lib to cargo. 😭

@onur-ozkan
Copy link
Member

onur-ozkan commented Jun 2, 2023

It's hard, rustdoc's doc is still as same as rustdoc-shim

It's probably because you didn't build rustdoc again after updating binary name. So this was from the previous build. Regenerate the docs after x clean, then it should do the job.

--

I'd like to pass --lib to cargo.

Yes please. Updating the binary name requires updating so many different spots in bootstrapping, which will fail the CI until we replace all of them correctly. So it's better to simply implement the first idea.

@eval-exec eval-exec force-pushed the exec/fix-bootstrap-rustdoc branch from 57287ae to 8657a64 Compare June 2, 2023 17:59
@eval-exec
Copy link
Contributor Author

./x doc is slow on my machine, I'm going to sleep and continue this PR 7 hours later.

@onur-ozkan onur-ozkan changed the title Rename bootstrap/bin/rustdoc.rs to bootstrap/bin/rustdoc-shim.rs pass --lib to x doc Jun 2, 2023
@onur-ozkan
Copy link
Member

./x doc is slow on my machine, I'm going to sleep and continue this PR 7 hours later.

No worries, I tested it and it works well :)

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jun 2, 2023

📌 Commit 8657a64 has been approved by ozkanonur

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 2, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 2, 2023
…mpiler-errors

Rollup of 6 pull requests

Successful merges:

 - rust-lang#109609 (Separate AnonConst from ConstBlock in HIR.)
 - rust-lang#112166 (bootstrap: Rename profile = user to profile = dist)
 - rust-lang#112168 (Lower `unchecked_div`/`_rem` to MIR's `BinOp::Div`/`Rem`)
 - rust-lang#112183 (Normalize anon consts in new solver)
 - rust-lang#112211 (pass `--lib` to `x doc`)
 - rust-lang#112223 (Don't ICE in new solver when auto traits have associated types)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 163ce68 into rust-lang:master Jun 3, 2023
@rustbot rustbot added this to the 1.72.0 milestone Jun 3, 2023
@eval-exec eval-exec deleted the exec/fix-bootstrap-rustdoc branch June 3, 2023 02:37
@@ -834,6 +834,7 @@ macro_rules! tool_doc {
cargo.arg("-Zskip-rustdoc-fingerprint");
// Only include compiler crates, no dependencies of those, such as `libc`.
cargo.arg("--no-deps");
cargo.arg("--lib");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is passed for all tools, not just bootstrap. was that intentional?

Copy link
Member

@onur-ozkan onur-ozkan Jun 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, missed it. Thanks for catching, will fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, I made a mistake. Thank you for your correction.

@onur-ozkan onur-ozkan mentioned this pull request Jun 3, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 4, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 29, 2023
compiler-errors added a commit to compiler-errors/rust that referenced this pull request Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the docs of rustdoc get overwritten by the bootstrap docs
6 participants