-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
More config.toml.example cleanups #108625
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
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.
Overall great, just a few nits and questions.
config.toml.example
Outdated
# | ||
# You can set this to "if-unchanged" to only download if `compiler/` has not been modified. | ||
# You can set this to "if-unchanged" to only download if the compiler and standard library have not been modified. |
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.
Does this means that true
and "if-unchanged"
have the same behavior?
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.
No. true
downloads the compiler unconditionally, even if there are changes.
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.
Is is also the case with download-ci-llvm
?
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.
Yes.
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.
Actually download-ci-llvm
downloads unconditionally even if you set it to if-available
; we might want to improve that at some point but right now we don't even rebuild on changes, so I don't think it's the most pressing issue.
89c8bb9
to
bcbffa4
Compare
config.toml.example
Outdated
# | ||
# You can set this to "if-unchanged" to only download if `compiler/` has not been modified. | ||
# Set this to "if-unchanged" to only download if the compiler and standard library have not been modified. | ||
# Set this to `true` to download unconditionally (useful if e.g. you are only changing doc-comments). | ||
#download-rustc = false |
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.
Also, does the test suite passes with this option?
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.
All but two of the UI tests pass with this enabled. I opened #108767 to track the two failing tests.
About half the debuginfo tests fail because of rust-lang/simpleinfra#254, I haven't bothered to get them working but I don't think it's related to this option.
The standard library unit tests fail: #108768
tests/run-make/translation
fails, but I'm not sure if it's related to this change or not:
error: failed to load fluent bundle: failed to add resource: Attempt to override an existing message: "parse_struct_literal_body_without_path".
bcbffa4
to
286b744
Compare
1824796
to
86ec208
Compare
There is an inconsistency: |
86ec208
to
804d7f7
Compare
Ok, fixed. Can you please switch the labels to S-waiting-on-author after you give feedback? It makes it easier for me to find the PR. |
☔ The latest upstream changes (presumably #109056) made this pull request unmergeable. Please resolve the merge conflicts. |
804d7f7
to
d2f6f80
Compare
☔ The latest upstream changes (presumably #109442) made this pull request unmergeable. Please resolve the merge conflicts. |
I am not planning to rebase this until I get a review - let me know if that makes it difficult, but the conflict is in config.user.toml so it shouldn't be too bad. |
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.
Thanks for the PR!
@bors rollup
r=me once rebased
- Link to more documentation - Move `changelog-seen` into the "Global Settings" section - Update incorrect comments on `llvm.link-shared` and `rust.debug-assertions` - Use the correct default in the commented-out example more often - Clarify that `docs` and `compiler-docs` only control the default, they're not a hard-off switch. - Document `-vvv` and `local-rebuild` - Minor improvements to doc-comments in config.toml.example This also sets `download-rustc = false`; that was already the default, but it will be helpful in case the default changes (https://jyn.dev/2023/01/12/Bootstrapping-Rust-in-2023.html).
d2f6f80
to
20ca24e
Compare
@bors r=albertlarsan68 |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#108625 (More config.toml.example cleanups) - rust-lang#109418 (Rename 'src/bootstrap/native.rs' to llvm.rs) - rust-lang#109580 (Remove some stale FIXMEs in new solver) - rust-lang#109582 (Refactor: Separate `LocalRef` variant for not-evaluated-yet operands) - rust-lang#109650 (Remove Nilstrieb from review rotation) - rust-lang#109656 (Update cargo) - rust-lang#109658 (Backport 1.68.1 and 1.68.2 release notes to `master`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
changelog-seen
into the "Global Settings" sectionllvm.link-shared
andrust.debug-assertions
docs
andcompiler-docs
only control the default, they're not a hard-off switch.-vvv
andlocal-rebuild
This also sets
download-rustc = false
; that was already the default, but it will be helpful in case the default changes (https://jyn.dev/2023/01/12/Bootstrapping-Rust-in-2023.html).