-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Move rustfmt downloads from bootstrap.py to rustbuild #97507
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #96687) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #97548) made this pull request unmergeable. Please resolve the merge conflicts. |
self.verbose(&format!("verifying {}", path.display())); | ||
let mut hasher = sha2::Sha256::new(); | ||
// FIXME: this is ok for rustfmt (4.1 MB large at time of writing), but it seems memory-intensive for rustc and larger components. | ||
// Consider using streaming IO instead? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I do think we can wait though, ultimately even our larger components aren't that large compared to memory usage during std/rustc compilation.
r=me with conflicts resolved |
It was confusing to have two functions with the same name but different behavior.
@bors r=Mark-Simulacrum rollup=iffy |
📌 Commit 9950dec28edde71695ba101481201ae7b43c7323 has been approved by |
This simplifies the arguments to `download_component` in config.rs. It also moves stage0.json metadata handling to `Build::new`, making it easier to download the stage0 compiler in rustbuild later if necessary.
@bors r- r=Mark-Simulacrum rollup=iffy |
📌 Commit 6115f4e has been approved by |
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#97507 (Move rustfmt downloads from bootstrap.py to rustbuild) - rust-lang#97813 (Sync rustc_codegen_gcc) - rust-lang#97878 (Add regression test for anonymous lifetimes) - rust-lang#97879 (remove unneeded code) - rust-lang#97880 (Fix typo: fo->for) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
ci-artifacts.rust-lang.org
format::format
to take aBuilder
so it has access todownload_component
. I think we may want to reconsider the distinction between Build and Builder at some point; I don't think it's particularly useful.Fixes #95136. Helps with #94829. This is based on #96687 for simplicity.