about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-06-03Merge pull request #2450 from jieyouxu/pr_message许杰友 Jieyou Xu (Joe)-0/+17
2025-06-03Auto merge of #136942 - Kobzol:stage0-sccache, r=jieyouxubors-0/+22
Use ccache for stage0 tool builds Now after the stage0 redesign, we can actually start ccaching the build of the compiler itself. We can also cache the bootstrap tools, since these are also built with the stage0 compiler. Stage0 compiler builds are now being cached: https://github.com/rust-lang/rust/actions/runs/15397246267#summary-43321151192 (`..bootstrap::core::build_steps::compile::Rustc 483.10s 40.41s -91.6%`). It's not a gigantic win everywhere, but it should help. It seems to make the Linux jobs ~10 minute faster. It should be especially useful on PR builds after https://github.com/rust-lang/rust/pull/141948. r? `@jieyouxu` try-job: `x86_64-gnu-llvm-19*` try-job: `x86_64-msvc*` try-job: `x86_64-apple*` try-job: `dist-x86_64-linux`
2025-06-03Rollup merge of #141923 - rustbot:docs-update, r=ehussMatthias Krüger-0/+0
Update books ## rust-lang/book 4 commits in 230c68bc1e08f5f3228384a28cc228c81dfbd10d..634724ea85ebb08a542970bf8871ac8b0f77fd15 2025-05-29 13:16:14 UTC to 2025-05-22 21:35:03 UTC - Chapter 10 from tech review (rust-lang/book#4379) - Chapter 9 from tech review (rust-lang/book#4377) - Chapter 8 from tech review (rust-lang/book#4378) - Chapter 7 from tech review (rust-lang/book#4374) ## rust-embedded/book 3 commits in 0b8219ac23a3e09464e4e0166c768cf1c4bba0d5..10fa1e084365f23f24ad0000df541923385b73b6 2025-05-27 18:37:30 UTC to 2025-05-27 18:26:36 UTC - portability: add reference to embedded-hal docs (rust-embedded/book#391) - remove the unused and deprecated `multilingual` field from `book.toml` (rust-embedded/book#388) - Ci upgrade 20250522 (rust-embedded/book#393) ## rust-lang/nomicon 4 commits in c76a20f0d987145dcedf05c5c073ce8d91f2e82a..8b61acfaea822e9ac926190bc8f15791c33336e8 2025-05-26 10:16:09 UTC to 2025-05-23 15:03:00 UTC - Use inline const expression in unchecked-uninit.md (rust-lang/nomicon#492) - Fix code sample output in unchecked-uninit.md (rust-lang/nomicon#491) - Use consistent type parameters in subtyping.md (rust-lang/nomicon#493) - Fix typo in atomics.md (rust-lang/nomicon#494) ## rust-lang/reference 1 commits in 118fd1f1f0854f50e3ae1fe4b64862aad23009ca..8e0f593a30f3b56ddb0908fb7ab9249974e08738 2025-05-31 20:12:39 UTC to 2025-05-31 20:12:39 UTC - Minor fixes to `$crate` behavior (rust-lang/reference#1816) ## rust-lang/rust-by-example 4 commits in c9d151f9147c4808c77f0375ba3fa5d54443cb9e..21f4e32b8b40d36453fae16ec07ad4b857c445b6 2025-05-29 12:45:08 UTC to 2025-05-29 12:44:23 UTC - Update book.toml rename `author` field to `authors` (rust-lang/rust-by-example#1917) - Add example to comment.md to teach how to toggle a whole code block using block comments (rust-lang/rust-by-example#1919) - The example is not meant to be compiled with out passing arguments. (rust-lang/rust-by-example#1930) - added a shorthand for the #[should_panic(expected = "msg") (rust-lang/rust-by-example#1931)
2025-06-03Rollup merge of #141914 - onur-ozkan:follow-ups, r=KobzolMatthias Krüger-18/+56
redesign stage 0 std follow-ups Various follow-ups pointed out on Zulip during post-merge discussions of [redesign stage 0 std #119899](https://github.com/rust-lang/rust/pull/119899). r? `@jieyouxu` Fixes https://github.com/rust-lang/rust/issues/141902. Fixes https://github.com/rust-lang/rust/issues/141905. cc `@jyn514`
2025-06-03Rollup merge of #141861 - jieyouxu:windows-server-2025-20250527, r=KobzolMatthias Krüger-8/+2
Switch `x86_64-msvc-{1,2}` back to Windows Server 2025 images New Windows Server 2025 images have been released (**20250527.1.0**). New images appear to not exhibit the lack-of-disk-space problem as tracked by rust-lang/rust#141022, and the new runner image's storage capacity appears to be configured correctly. Windows Server 2025 image version **20250527.1.0** release notes: <https://github.com/actions/runner-images/releases/tag/win25%2F20250527.1>. Resolves rust-lang/rust#141022.
2025-06-03Merge from rustcJieyou Xu-1211/+2540
2025-06-03Preparing for merge from rustcJieyou Xu-1/+1
2025-06-03triagebot: configure PR welcome message for no auto/explicit reviewerJieyou Xu-0/+17
2025-06-03use better default stage for `check::Std` when stage isn't explicitonur-ozkan-9/+29
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03Auto merge of #141954 - matthiaskrgr:rollup-zptd6t9, r=matthiaskrgrbors-310/+699
Rollup of 9 pull requests Successful merges: - rust-lang/rust#141554 (Improve documentation for codegen options) - rust-lang/rust#141817 (rustc_llvm: add Windows system libs only when cross-compiling from Wi…) - rust-lang/rust#141843 (Add `visit_id` to ast `Visitor`) - rust-lang/rust#141881 (Subtree update of `rust-analyzer`) - rust-lang/rust#141898 ([rustdoc-json] Implement PartialOrd and Ord for rustdoc_types::Id) - rust-lang/rust#141921 (Disable f64 minimum/maximum tests for arm 32) - rust-lang/rust#141930 (Enable triagebot `[concern]` functionality) - rust-lang/rust#141936 (Decouple "reporting in deps" from `FutureIncompatibilityReason`) - rust-lang/rust#141949 (move `test-float-parse` tool into `src/tools` dir) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-03Rollup merge of #141949 - onur-ozkan:move-test-float-parse, r=KobzolMatthias Krüger-8/+8
move `test-float-parse` tool into `src/tools` dir Obviously `test-float-parse` is a tool like any other in `src/tools`. cc `@tgross35`
2025-06-03Rollup merge of #141898 - LukeMathWalker:patch-1, r=aDotInTheVoidMatthias Krüger-1/+1
[rustdoc-json] Implement PartialOrd and Ord for rustdoc_types::Id This allows consumers to create collections that required an ordering relationship for their keys—e.g. a `BTreeMap`.
2025-06-03Rollup merge of #141881 - lnicola:sync-from-ra, r=lnicolaMatthias Krüger-298/+641
Subtree update of `rust-analyzer` r? `@ghost`
2025-06-03Rollup merge of #141554 - Noratrieb:document-codegen-opts-better, r=bjorn3Matthias Krüger-3/+49
Improve documentation for codegen options This adds more information to many different codegen options. It should not add any new guarantees, just document existing behavior. r? bjorn3
2025-06-03chore(deps): bump tar-fs from 2.1.2 to 2.1.3 in /editors/codedependabot[bot]-3/+3
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.2 to 2.1.3. - [Commits](https://github.com/mafintosh/tar-fs/commits) --- updated-dependencies: - dependency-name: tar-fs dependency-version: 2.1.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
2025-06-03run `x check` on mingw-check-2onur-ozkan-0/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03handle stage0 on `Std::check`onur-ozkan-11/+24
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03Use 4-core large disk runner for the alt jobJakub Beránek-11/+16
2025-06-03add config.rs with new module structuringbit-aloo-1982/+122
2025-06-03Move all common types, macros and utility method to config/mod.rsbit-aloo-0/+411
2025-06-03move target selection to its separate modulebit-aloo-0/+147
2025-06-03This commit adds a `toml` module that represents various subsections of ↵bit-aloo-0/+1541
`bootstrap.toml`. The module primarily defines the TOML representations of these subsections and their corresponding configuration parsing implementations, which are ultimately integrated into the main configuration. - `mod.rs` – Serves as the entry point for the TOML configuration and defines the `TomlConfig` struct along with its parsing implementation. - `rust.rs` – Defines the `Rust` subsection struct and its configuration parsing implementation. - `target.rs` – Defines the `Target` subsection struct and its configuration parsing implementation. - `llvm.rs` – Defines the `Llvm` subsection struct and its configuration parsing implementation. - `install.rs` – Defines the `Install` subsection struct and its configuration parsing implementation. - `gcc.rs` – Defines the `Gcc` subsection struct and its configuration parsing implementation. - `dist.rs` – Defines the `Dist` subsection struct and its configuration parsing implementation. - `build.rs` – Defines the `Build` subsection struct and its configuration parsing implementation.
2025-06-03move `test-float-parse` tool into `src/tools` dironur-ozkan-8/+8
Obviously `test-float-parse` is a tool like any other in `src/tools`. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03make library profile to use stage 1 on `x check`onur-ozkan-1/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03make `x check` to use stage0 by defaultonur-ozkan-1/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03Auto merge of #141944 - matthiaskrgr:rollup-e7xhp6w, r=matthiaskrgrbors-32/+35
Rollup of 8 pull requests Successful merges: - rust-lang/rust#140715 (Clarify &mut-methods' docs on sync::OnceLock) - rust-lang/rust#141677 (Async drop - type instead of async drop fn, fixes rust-lang/rust#140484) - rust-lang/rust#141741 (Overhaul `UsePath`) - rust-lang/rust#141873 (Fixed a typo in `ManuallyDrop`'s doc) - rust-lang/rust#141876 (Don't declare variables in `ExprKind::Let` in invalid positions) - rust-lang/rust#141886 (Add missing 2015 edition directives) - rust-lang/rust#141889 (Add missing `dyn` keywords to tests that do not test for them) - rust-lang/rust#141891 (Fix borrowck mentioning a name from an external macro we (deliberately) don't save) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-03Merge pull request #19869 from MatrixFrog/publicize_fieldLukas Wirth-182/+138
Add a quickfix for accessing a private field of a struct
2025-06-03Merge pull request #19894 from ShoyuVanilla/some-query-cyclesLukas Wirth-7/+72
fix: Cycle handlers for `HirDatabase::infer, const_param_ty_with_diagnostics`
2025-06-03Merge pull request #19901 from BazookaMusic/masterLukas Wirth-12/+192
Enable Assist edit for tuple<->named struct for the struct and visiblity keywords
2025-06-02Add a quickfix for accessing a private field of a structTyler Breisacher-182/+138
2025-06-03Rollup merge of #141741 - nnethercote:overhaul-UsePath, r=petrochenkovMatthias Krüger-32/+35
Overhaul `UsePath` It currently uses `SmallVec<[Res; 3]>` which is really weird. Details in the individual commits. r? `@petrochenkov`
2025-06-03Merge from rustcThe Miri Cronjob Bot-1357/+3019
2025-06-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-03Auto merge of #141210 - RalfJung:miri-std-doctests, r=saethlinbors-12/+11
tools-aux ci runner: also cross-test doctests in Miri Miri now supports running doctests across different targets. Let's use that to run the std doctests on aarch64-apple-darwin, i686-pc-windows-msvc. try-job: x86_64-gnu-aux
2025-06-03fix: Cycle handlers for `HirDatabase::infer, const_param_ty_with_diagnosticsShoyu Vanilla-7/+72
2025-06-02feat: implement completion for diagnostic moduleRyan Mehri-17/+175
2025-06-03Overhaul `UsePath`.Nicholas Nethercote-29/+32
`UsePath` contains a `SmallVec<[Res; 3]>`. This holds up to three `Res` results, one per namespace (type, value, or macro). `lower_import_res` takes a `PerNS<Option<Res<NodeId>>>` result and lowers it into the `SmallVec`. This is pretty weird. The input `PerNS` makes it clear which `Res` belongs to which namespace, but the `SmallVec` throws that information away. And code that operates on the `SmallVec` tends to use iteration (or even just grabbing the first entry!) without knowing which namespace the `Res` belongs to. Even weirder! Also, `SmallVec` is an overly flexible type to use here, because it can contain any number of elements (even though it's optimized for 3 in this case). This commit changes `UsePath` so it also contains a `PerNS<Option<Res<HirId>>>`. This type preserves more information and is more self-documenting. The commit also changes a lot of the use sites to access the result for a particular namespace. E.g. if you're looking up a trait, it will be in the `Res` for the type namespace if it's present; it's silly to look in the `Res` for the value namespace or macro namespace. Overall I find the new code much easier to understand. However, some use sites still iterate. These now use `present_items` because that filters out the `None` results. Also, `redundant_pub_crate.rs` gets a bigger change. A `UseKind:ListStem` item gets no `Res` results, which means the old `all` call in `is_not_macro_export` would succeed (because `all` succeeds on an empty iterator) and the `ListStem` would be ignored. This is what we want, but was more by luck than design. The new code detects `ListStem` explicitly. The commit generalizes the name of that function accordingly. Finally, the commit also removes the `use_path` arena, because `PerNS<Option<Res>>` impls `Copy` (unlike `SmallVec`) and it can be allocated in the arena shared by all `Copy` types.
2025-06-02simplify expression that checks the offsetBazookaMusic-36/+30
2025-06-02Auto merge of #141912 - Kobzol:rollup-wurlnsx, r=Kobzolbors-1/+10
Rollup of 5 pull requests Successful merges: - rust-lang/rust#141767 (ci: use free runner for aarch64-gnu-llvm-19-1 PR job) - rust-lang/rust#141858 (Fix typo in `StructuralPartialEq` docs) - rust-lang/rust#141865 (Optionally don't steal the THIR) - rust-lang/rust#141874 (add f16_epsilon and f128_epsilon diagnostic items) - rust-lang/rust#141904 (test-float-parse: apply `cfg(not(bootstrap))`) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-02fix: don't duplicate must_use for functions and traitsRyan Mehri-2/+2
2025-06-02Update booksrustbot-0/+0
2025-06-02Auto merge of #141906 - chenyukang:rollup-k6v59ty, r=chenyukangbors-134/+284
Rollup of 6 pull requests Successful merges: - rust-lang/rust#141884 (allow macro_use as first segment) - rust-lang/rust#141885 ([RTE-484] Update SGX maintainers) - rust-lang/rust#141892 (Fix false positive lint error from no_implicit_prelude attr) - rust-lang/rust#141894 (rustc-dev-guide subtree update) - rust-lang/rust#141895 (tshepang has a new email) - rust-lang/rust#141897 (Fix citool tests when executed locally) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-02Clarify why we are talking about a failed const eval at a random placeOli Scherer-4/+4
2025-06-02Use the informative error as the main const eval error messageOli Scherer-12/+12
2025-06-02Merge pull request #2443 from smanilov/patch-21Tshepang Mbambo-1/+3
Simplify long sentence
2025-06-02Simplify long sentenceStan Manilov-1/+3
2025-06-02Merge pull request #2446 from fmease/fix-warning-blocksLeón Orell Valerian Liehr-1/+15
Fix some warning blocks that contain Markdown
2025-06-02Fix some warning blocks that contain MarkdownLeón Orell Valerian Liehr-1/+15
Contents inside of an HTML element only get interpreted as Markdown (as opposed to HTML) if its separated from the HTML tags with line breaks.
2025-06-02Merge pull request #2445 from smanilov/patch-23Tshepang Mbambo-9/+13
Add title and toc to Async chapter
2025-06-02Add title and toc to Async chapterStan Manilov-9/+13
This is standard for other chapters.