about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2025-03-17Auto merge of #137081 - ↵bors-110/+138
Shourya742:2025-02-15-change-config.toml-to-bootstrap.toml, r=onur-ozkan,jieyouxu,kobzol change config.toml to bootstrap.toml Currently, both Bootstrap and Cargo uses same name as their configuration file, which can be confusing. This PR is based on a discussion to rename `config.toml` to `bootstrap.toml` for Bootstrap. Closes: https://github.com/rust-lang/rust/issues/126875. I have split the PR into atomic commits to make it easier to review. Once the changes are finalized, I will squash them. I am particularly concerned about the changes made to modules that are not part of Bootstrap. How should we handle those changes? Should we ping the respective maintainers?
2025-03-17modify config.toml->bootstrap.toml for new upstream changesbit-aloo-4/+4
2025-03-17Rollup merge of #138412 - cuviper:licenses, r=jieyouxuMatthias Krüger-1/+1
Install licenses into `share/doc/rust/licenses` This changes the path from "licences" to "licenses" for consistency across the repo, including the usage directly around this line. This is a US/UK spelling difference, but I believe the US spelling is also more common in open source in general.
2025-03-17adjust commentGiang Dao-22/+8
2025-03-17wix: allow to skip more componentsklensy-2/+30
2025-03-17fix missing rustfmt for apple darwinGiang Dao-3/+9
2025-03-17fix missing rustfmt and clippy for msiGiang Dao-1/+30
2025-03-17Rollup merge of #138592 - onur-ozkan:follow-up-137147, r=KobzolJacob Pratt-1/+1
update change entry for #137147 r? `@RalfJung`
2025-03-17Rollup merge of #136355 - ↵Jacob Pratt-2/+7
GuillaumeGomez:proc-macro_add_value_retrieval_methods, r=Amanieu Add `*_value` methods to proc_macro lib This is the implementation of https://github.com/rust-lang/libs-team/issues/459. It allows to get the actual value (unescaped) of the different string literals. Part of https://github.com/rust-lang/rust/issues/136652. r? libs-api
2025-03-17Only add `rustc_randomized_layouts` if the crate has itGuillaume Gomez-1/+1
2025-03-17update change entry for #137147onur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-17make profile_user_dist test backward compatiblebit-aloo-7/+9
2025-03-17change config.toml to bootstrap.toml for bootstrap modulebit-aloo-101/+127
2025-03-16Auto merge of #137011 - LuuuXXX:promote-ohos-with-host-tools, r=Amanieubors-1/+14
Promote ohos targets to tier2 with host tools. ### What does this PR try to resolve? Try to promote the following [[Tier 2 without Host Tools](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-without-host-tools)](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-without-host-tools) targets to [[Tier 2 with Host Tools](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-with-host-tools)](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-with-host-tools): - `aarch64-unknown-linux-ohos` - `armv7-unknown-linux-ohos` - `x86_64-unknown-linux-ohos` ### More Information? see MCP: https://github.com/rust-lang/compiler-team/issues/811 ### Blockage to be solved? - [x] Submit an MCP - [x] Submit code of promote ohos targets - [x] Resolve related dependencies (`measureme`) The modified code of the measureme has been merged (see https://github.com/rust-lang/measureme/pull/238). [done] The new version will was released (https://github.com/rust-lang/measureme/pull/240). [done]
2025-03-16Rollup merge of #137147 - ↵许杰友 Jieyou Xu (Joe)-16/+42
Shourya742:2025-02-16-support-exclude-in-config.toml, r=onur-ozkan Add exclude to config.toml Closes: https://github.com/rust-lang/rust/issues/35678 r? `@onur-ozkan` try-job: x86_64-msvc-2
2025-03-15Auto merge of #137665 - Kobzol:update-sccache, r=marcoienibors-98/+10
Update sccache to 0.10.0 This time, does it also for Windows and macOS. This unifies the sccache version across all OSes that we use. r? `@ghost` try-job: dist-aarch64-apple try-job: dist-x86_64-apple try-job: dist-x86_64-msvc try-job: dist-x86_64-msvc-alt try-job: dist-i686-msvc try-job: dist-aarch64-msvc try-job: dist-x86_64-linux try-job: dist-x86_64-netbsd
2025-03-15Rollup merge of #138451 - Kobzol:gcc-ci-build-gcc, r=GuillaumeGomezLeón Orell Valerian Liehr-15/+36
Build GCC on CI with GCC, not Clang It seems that GCC built with Clang misbehaves. I have tested that cg_gcc tests [pass](https://github.com/rust-lang/rust/actions/runs/13842365913/job/38732750617?pr=138451) on CI with a downloaded GCC that was built in this way. Prerequisite for https://github.com/rust-lang/rust/pull/138395. r? ```@ghost```
2025-03-14Rollup merge of #138469 - tshepang:patch-6, r=onur-ozkanLeón Orell Valerian Liehr-2/+0
remove comment regarding a removed test directive Removed in https://github.com/rust-lang/rust/pull/120265
2025-03-14Ensure that GCC is not built using Clang, as it misbehavesJakub Beránek-6/+20
2025-03-14Rollup merge of #138389 - onur-ozkan:use-expect, r=jieyouxuJacob Pratt-16/+13
use `expect` instead of `allow` This is more useful than `allow` as compiler will force us to remove rules that are no longer valid (we already got a few of them in this change).
2025-03-13Store libgccjit.so in a lib directory in the GCC CI tarballJakub Beránek-3/+2
2025-03-13Change GCC build flagsJakub Beránek-1/+1
2025-03-13Create libgccjit.so.0 alias also for CI-downloaded GCCJakub Beránek-6/+14
2025-03-13remove comment regarding a removed test directiveTshepang Mbambo-2/+0
2025-03-13Record the new settings checksumsJosh Stone-3/+7
2025-03-13update the test_exclude to not use paths with path separatorsbit-aloo-2/+1
2025-03-13make test platform agnosticbit-aloo-2/+4
2025-03-13Add change info to change trackerbit-aloo-0/+5
2025-03-13add test for exclude featurebit-aloo-0/+14
2025-03-13add exclude to config.tomlbit-aloo-16/+22
2025-03-13Rollup merge of #126856 - onur-ozkan:remove-rls, r=clubby789Matthias Krüger-58/+7
remove deprecated tool `rls` This tool has been deprecated for two years and now it only gives warning without doing anything useful. Zulip discussion: https://rust-lang.zulipchat.com/#narrow/stream/241545-t-release/topic/excluding.20rls.20from.20the.20release try-job: x86_64-gnu-distcheck
2025-03-12use `expect` instead of `allow`onur-ozkan-16/+13
This is more useful than `allow` as compiler will force us to remove rules that are no longer valid (we already got 2 of them in this change). Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-12Rollup merge of #138390 - onur-ozkan:fix-invalid-tracing-log, r=jieyouxuMatthias Krüger-5/+1
fix incorrect tracing log Previous information is not correct.
2025-03-12Rollup merge of #138331 - nnethercote:use-RUSTC_LINT_FLAGS-more, ↵Matthias Krüger-16/+24
r=onur-ozkan,jieyouxu Use `RUSTC_LINT_FLAGS` more An alternative to the failed #138084. Fixes #138106. r? ````@jieyouxu````
2025-03-12Install licenses into `share/doc/rust/licenses`Josh Stone-1/+1
This changes the path from "licences" to "licenses" for consistency across the repo, including the usage directly around this line. This is a US/UK spelling difference, but I believe the US spelling is also more common in open source in general.
2025-03-12Remove `sccache-plus-cl` MSVC hackJakub Beránek-98/+10
2025-03-12Auto merge of #137612 - Kobzol:bootstrap-2024, r=onur-ozkanbors-53/+83
Update bootstrap to edition 2024 The stage0 compiler now supports edition 2024, so we can update bootstrap to it. I manually reviewed all the changes from `cargo fix --edition` and reverted most of them (`if let` -> `matches` changes and two unneeded usages of `use <>`). r? `@onur-ozkan` try-job: dist-x86_64-msvc
2025-03-12fix incorrect tracing logonur-ozkan-5/+1
Previous information is not correct. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-12Rollup merge of #138313 - rustbot:docs-update, r=jieyouxuMatthias Krüger-0/+1
Update books ## rust-lang/book 11 commits in 4a01a9182496f807aaa5f72d93a25ce18bcbe105..81a976a237f84b8392c4ce1bd5fd076eb757a2eb 2025-02-27 22:10:41 UTC to 2025-02-24 18:36:27 UTC - Ch. 10: Make social media discussion generic. (rust-lang/book#4249) - Another Ch. 17 -> 18 fix (rust-lang/book#4247) - Ch. 05: further tweak to wording about `user1` availability (rust-lang/book#4246) - Ch. 02: Fix rand version mistake (from testing) (rust-lang/book#4245) - Ch. 19: Correct the discussion of `fn` type and closures (rust-lang/book#4244) - Edition maintenance: scripting the updates for future work (rust-lang/book#4243) - Ch. 17: fresh-eyes edits (rust-lang/book#4242) - Ch. 17: drop lifetime not required in 2024 Edition (rust-lang/book#4212) - Appendix B, Operators: Replace “member access” with “field access” and “method call”. (rust-lang/book#4240) - Update to Rust 1.85 and 2024 Edition! (rust-lang/book#4241) - Chapter 1: fix 'four things' now that spacing is not emphasized (rust-lang/book#4239) ## rust-lang/edition-guide 2 commits in daa4b763cd848f986813b5cf8069e1649f7147af..1e27e5e6d5133ae4612f5cc195c15fc8d51b1c9c 2025-03-04 22:02:00 UTC to 2025-02-26 12:47:41 UTC - Mention both `rustfmt.toml` and `.rustfmt.toml` (rust-lang/edition-guide#372) - Fix a typo (rust-lang/edition-guide#370) ## rust-lang/nomicon 1 commits in 8f5c7322b65d079aa5b242eb10d89a98e12471e1..b4448fa406a6dccde62d1e2f34f70fc51814cdcc 2025-03-01 04:48:05 UTC to 2025-03-01 04:48:05 UTC - Update to 2024 edition (rust-lang/nomicon#481) ## rust-lang/reference 8 commits in 615b4cec60c269cfc105d511c93287620032d5b0..dda31c85f2ef2e5d2f0f2f643c9231690a30a626 2025-03-09 14:25:25 UTC to 2025-02-25 16:07:17 UTC - Rework note blocks and change admonition rendering (rust-lang/reference#1754) - Add more information on rules and tests (rust-lang/reference#1753) - Mention `explicit_builtin_cfgs_in_flags` lint cfg chapter (rust-lang/reference#1747) - fixup test links (rust-lang/reference#1741) - Fix diagnostics typo: `do_no_recommend` -> `do_not_recommend` (rust-lang/reference#1749) - panic runtime and C-unwind documentation (rust-lang/reference#1226) - Closures: fix example of desugaring (rust-lang/reference#1743) - Update boolean.md, Comment breaks paragraph format (rust-lang/reference#1744) ## rust-lang/rust-by-example 1 commits in 66543bbc5b7dbd4e679092c07ae06ba6c73fd912..6f69823c28ae8d929d6c815181c73d3e99ef16d3 2025-03-09 13:12:24 UTC to 2025-03-09 13:12:24 UTC - Update mdbook to 0.4.46 (rust-lang/rust-by-example#1914) try-job: x86_64-gnu-distcheck
2025-03-12add change entry for rls removalonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-12remove rls support from bootstraponur-ozkan-58/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-03-11Rollup merge of #138245 - onur-ozkan:ci-rustc-test-fix, r=jieyouxuMatthias Krüger-2/+11
stabilize `ci_rustc_if_unchanged_logic` test for local environments Fixes #138239
2025-03-11Rollup merge of #138051 - Kobzol:download-ci-gcc, r=onur-ozkanMatthias Krüger-120/+261
Add support for downloading GCC from CI This PR adds a new bootstrap config section called `gcc` and implements a single config `download-ci-gcc`. Its behavior is similar to `download-ci-llvm`. Since https://github.com/rust-lang/rust/pull/137667, we distribute a CI component that contains the prebuilt `libgccjit.so` library on x64 Linux. With `download-ci-gcc`, this component is downloaded from CI to avoid building GCC locally. This is an MVP of this functionality, designed for local usage. This PR does not enable this functionality on the LLVM 18 PR CI job which builds `cg_gcc`, and does not implement more complex detection logic. It simply uses `false` (build locally) or `true` (download from CI if you're on the right target, if CI download fails, then bootstrap fails). The original LLVM CI download functionality has a lot of features and complexity, which we don't need for GCC (yet). I don't like how the LLVM CI stuff is threaded through multiple parts of bootstrap, so with GCC I would like to take a more centralized approach, where the `build::Gcc` step handles download from CI internally. This means that: - For the rest of bootstrap, it should be transparent whether GCC was built locally or downloaded from CI. - GCC is not downloaded eagerly unless you actually requested GCC (either you requested `x build gcc` or you asked to build/test the GCC backend). This approach will require some modifications once we extend this feature, but so far I like this approach much more than putting this stuff into `Config[::parse]`, which already does a ton of stuff that it arguably shouldn't (but it's super difficult to extract its logic out). This PR is an alternative to https://github.com/rust-lang/rust/pull/130749, which did a more 1:1 copy of the `download-ci-llvm` logic. r? ``@onur-ozkan``
2025-03-11Fix `cargo vendor` not working without `rustc` installedEric Huss-0/+1
This fixes an issue where vendoring would fail if `rustc` is not in PATH. This happens with the update of some workspaces to the 2024 edition which need to run `rustc -Vv` to determine which rust version is in use.
2025-03-11Do not download GCC in testsJakub Beránek-6/+14
2025-03-11Add missing unsafe blockJakub Beránek-29/+32
2025-03-11Add `unreachable_pub` to `RUSTC_LINT_FLAGS` for `compiler/` crates.Nicholas Nethercote-0/+1
And fix the new errors in the handful of crates that didn't have a `#![warn(unreachable_pub)]`.
2025-03-11Use `RUSTC_LINT_FLAGS` more.Nicholas Nethercote-16/+23
For the `Mode::Rustc` lints as well. Because, unlike `RUSTC_FLAGS`, `RUSTC_LINT_FLAGS` is not ignored for proc macro crates. Fixes #138106.
2025-03-10Target definition for `wasm32-wali-linux-musl` to support the Wasm LinuxArjun Ramesh-17/+37
Interface This commit does not patch libc, stdarch, or cc
2025-03-10stabilize `ci_rustc_if_unchanged_logic` test for local environmentsonur-ozkan-2/+11
Signed-off-by: onur-ozkan <work@onurozkan.dev>