Skip to content

Conversation

Shourya742
Copy link
Contributor

This PR is part of a series of config refactorings. It removes calls from config methods to solid functions defined in config.rs. After this, we will remove the default dependencies in the config.

r? @Kobzol

@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 Aug 9, 2025
@rustbot
Copy link
Collaborator

rustbot commented Aug 9, 2025

This PR modifies src/bootstrap/src/core/config.

If appropriate, please update CONFIG_CHANGE_HISTORY in src/bootstrap/src/utils/change_tracker.rs.

This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp.

@Shourya742 Shourya742 changed the title Convert config method invoke inside parse use dwn_ctx make config method invoke inside parse use dwn_ctx Aug 9, 2025
@Shourya742 Shourya742 changed the title make config method invoke inside parse use dwn_ctx Make config method invoke inside parse use dwn_ctx Aug 9, 2025
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

download_ci_rustc_commit, parse_download_ci_llvm and ci_env methods on Config are unused, you can remove them for now.

@Shourya742 Shourya742 requested a review from Kobzol August 9, 2025 13:01
@Kobzol
Copy link
Member

Kobzol commented Aug 10, 2025

Thank you!

@bors r+ rollup=iffy

@bors
Copy link
Collaborator

bors commented Aug 10, 2025

📌 Commit bfa6b56 has been approved by Kobzol

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 Aug 10, 2025
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Aug 10, 2025
…ig-method-invoke-inside-parse-functions, r=Kobzol

Make config method invoke inside parse use dwn_ctx

This PR is part of a series of config refactorings. It removes calls from config methods to solid functions defined in `config.rs`. After this, we will remove the default dependencies in the config.

r? `@Kobzol`
bors added a commit that referenced this pull request Aug 10, 2025
Rollup of 3 pull requests

Successful merges:

 - #135846 (Detect struct construction with private field in field with default)
 - #144558 (Point at the `Fn()` or `FnMut()` bound that coerced a closure, which caused a move error)
 - #145149 (Make config method invoke inside parse use dwn_ctx)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Aug 11, 2025
Rollup of 7 pull requests

Successful merges:

 - #143949 (Constify remaining traits/impls for `const_ops`)
 - #144330 (document assumptions about `Clone` and `Eq` traits)
 - #144350 (std: sys: io: io_slice: Add UEFI types)
 - #144558 (Point at the `Fn()` or `FnMut()` bound that coerced a closure, which caused a move error)
 - #145149 (Make config method invoke inside parse use dwn_ctx)
 - #145227 (Tweak spans providing type context on errors when involving macros)
 - #145228 (Remove unnecessary parentheses in `assert!`s)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 2f1d61a into rust-lang:master Aug 11, 2025
10 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Aug 11, 2025
rust-timer added a commit that referenced this pull request Aug 11, 2025
Rollup merge of #145149 - Shourya742:2025-07-08-convert-config-method-invoke-inside-parse-functions, r=Kobzol

Make config method invoke inside parse use dwn_ctx

This PR is part of a series of config refactorings. It removes calls from config methods to solid functions defined in `config.rs`. After this, we will remove the default dependencies in the config.

r? ```@Kobzol```
Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 12, 2025
bootstrap: Only warn about `rust.debug-assertions` if downloading rustc

The changes in rust-lang#145149 had the unwanted side-effect of causing bootstrap to *always* warn about `rust.debug-assertions = true`, even if rustc isn't going to be downloaded anyway.

cc `@Shourya742` `@Kobzol`
Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 12, 2025
bootstrap: Only warn about `rust.debug-assertions` if downloading rustc

The changes in rust-lang#145149 had the unwanted side-effect of causing bootstrap to *always* warn about `rust.debug-assertions = true`, even if rustc isn't going to be downloaded anyway.

cc ``@Shourya742`` ``@Kobzol``
rust-timer added a commit that referenced this pull request Aug 12, 2025
Rollup merge of #145291 - Zalathar:no-warning, r=Kobzol

bootstrap: Only warn about `rust.debug-assertions` if downloading rustc

The changes in #145149 had the unwanted side-effect of causing bootstrap to *always* warn about `rust.debug-assertions = true`, even if rustc isn't going to be downloaded anyway.

cc ``@Shourya742`` ``@Kobzol``
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Aug 13, 2025
bootstrap: Only warn about `rust.debug-assertions` if downloading rustc

The changes in rust-lang/rust#145149 had the unwanted side-effect of causing bootstrap to *always* warn about `rust.debug-assertions = true`, even if rustc isn't going to be downloaded anyway.

cc ``@Shourya742`` ``@Kobzol``
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Aug 18, 2025
bootstrap: Only warn about `rust.debug-assertions` if downloading rustc

The changes in rust-lang/rust#145149 had the unwanted side-effect of causing bootstrap to *always* warn about `rust.debug-assertions = true`, even if rustc isn't going to be downloaded anyway.

cc ``@Shourya742`` ``@Kobzol``
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.

4 participants