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

rewrite bootstrapping stages #1650

Draft
wants to merge 2,045 commits into
base: master
Choose a base branch
from

Conversation

mightyiam
Copy link
Contributor

Following from #1458.

This may be too much to review.
So I will extract smaller pull requests from it and rebase as they are merged.
The first of them, #1555, is already merged (thank you!).
This will remain a draft until it is small enough to be reviewed.

tshepang and others added 30 commits August 2, 2022 13:50
* make date-check lightweight

This avoids having to write the date twice when updating date-check.

Before "As of <-- 2022-07 --> July 2022"
After "As of July 2022"

* please clippy

* update date-check docs

* accept review suggestion

Co-authored-by: Noah Lev <[email protected]>

* address review comment

rust-lang#1394 (review)

* accept review suggestion

Co-authored-by: Noah Lev <[email protected]>

* address review comment

rust-lang#1394 (review)

* address review comment

rust-lang#1394 (comment)

* this breaks markdown

* address review comment

rust-lang#1394 (comment)

This led to a more robust regex, though making the tool more picky.
It also found a wrong date format that was missed.

* address review comment

rust-lang#1394 (comment)

* address review comment

rust-lang#1394 (comment)

* accept review suggestion

This was reverted by mistake

Co-authored-by: Noah Lev <[email protected]>

* address review comment

rust-lang#1394 (comment)

* use a more simple fn

* address review comment

rust-lang#1394 (comment)

Much more clean

* nit

* accept review suggestion

Co-authored-by: Noah Lev <[email protected]>

* avoid a failed regex

Also, test new shape

* adjust to new regex (which uses named groups)

New regex was introduced by 456008c

Co-authored-by: Noah Lev <[email protected]>
This diagram is based on the diagram in Joshua Nelson's talk on
bootstrapping at RustConf 2022 [1]. I converted it to Mermaid and made
some tweaks to simplify it and bring it closer to bootstrap's
terminology, and then Ralf Jung added nodes for copying artifacts.

[1]: https://rustconf.com/schedule#bootstrapping-the-once-and-future-compiler

Co-authored-by: Joshua Nelson <[email protected]>
Co-authored-by: Ralf Jung <[email protected]>
Also, make link to upstream llvm repo clickable
* fix incorrect #[note] syntax

* more syntax fixes

* add missing lifetime
One could not run it like the following, for the would be a panic:

    cargo run --manifest-path ci/date-check/Cargo.toml .

Also, remove the need to specify argument, in which case, current_dir
is assumed.
@JohnTitor JohnTitor added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Apr 3, 2023
@jieyouxu jieyouxu added the T-bootstrap Relevant to bootstrap team label Nov 4, 2024
@Kobzol
Copy link
Contributor

Kobzol commented Jan 5, 2025

Sorry, due to me messing up a git operation, we sadly had to force-push the whole commit history of rustc-dev-guide :( If you'd like to update this pull request, you will have to rebase it in a special way onto the new commit history (the new master):

git fetch origin --all
git checkout <pr-branch>
git rebase --onto origin/master origin/master-old
git push --force-with-lease

More context can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content T-bootstrap Relevant to bootstrap team
Projects
None yet
Development

Successfully merging this pull request may close these issues.