about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-02-18Rollup merge of #136599 - yotamofek:pr/rustdoc-more-joined, r=GuillaumeGomezMatthias Krüger-51/+70
librustdoc: more usages of `Joined::joined` Some missed opportunities from #136244 r? ```@GuillaumeGomez``` since you reviewed the last one (feel free to re-assign, of course 😊) First two commits are just drive-by cleanups
2025-02-18Rollup merge of #136750 - kornelski:ub-bug, r=saethlinUrgau-0/+2
Make ub_check message clear that it's not an assert I've seen a user assume that their unsound code was *safe*, because ub_check prevented the program from performing the unsafe operation. This PR makes the panic message clearer that ub_check is a bug detector, not run-time safety protection.
2025-02-18fix `clippy::len-zero`Josh Stone-1/+1
2025-02-18fix `clippy::doc-overindented-list-items`Josh Stone-4/+4
2025-02-18fix `clippy::double-ended-iterator-last`Josh Stone-1/+1
2025-02-18fix `clippy::unneeded-struct-pattern`Josh Stone-13/+13
2025-02-18update `STAGE0_MISSING_TARGETS`Josh Stone-4/+0
2025-02-18update `cfg(bootstrap)`Josh Stone-15/+3
2025-02-18fix rust-analyzer testsonur-ozkan-0/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18bump stage0Josh Stone-463/+463
2025-02-18docs(dev): Access features as functions, not membersEd Page-1/+1
This was changed in #132027
2025-02-18docs(dev): Remove reference to features_untrackedEd Page-3/+1
This was removed in #114723
2025-02-18fix cargo testsonur-ozkan-1/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18Fix dead linkBenjamin Brienen-1/+1
2025-02-18add test coverage for `tool::get_tool_rustc_compiler`onur-ozkan-0/+30
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18adapt tool module to `ToolBuildResult`onur-ozkan-179/+189
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18document tool implementationsonur-ozkan-0/+18
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18remove manually handled stage offsonur-ozkan-49/+24
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18return `ToolBuildResult` to utilize them from callersonur-ozkan-85/+66
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18migrate llvm-bitcode-linker to `ToolBuild`onur-ozkan-51/+27
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18return more advanced type from `ToolBuild`onur-ozkan-98/+125
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18bless testsonur-ozkan-1/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18pass target_compiler from Rustdoconur-ozkan-11/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18handle `ToolRustc` build stages automaticallyonur-ozkan-1/+22
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-02-18Revert "pass struct fields to chalk"Lukas Wirth-37/+20
2025-02-18Merge pull request #19157 from joshrotenberg/dev-guide-to-bookLukas Wirth-173/+201
doc: move dev docs to manual
2025-02-17Add Zed to dev guide suggested workflows pageChai T. Rex-0/+11
2025-02-18Auto merge of #137162 - nnethercote:remove-Map-2, r=Zalatharbors-62/+52
Move methods from `Map` to `TyCtxt`, part 2. Continuing the work started in #136466. Every method gains a `hir_` prefix, though for the ones that already have a `par_` or `try_par_` prefix I added the `hir_` after that. r? Zalathar
2025-02-18Auto merge of #137176 - matthiaskrgr:rollup-eht05gr, r=matthiaskrgrbors-3037/+9703
Rollup of 9 pull requests Successful merges: - #136959 (Simplify switch sources) - #137020 (Pass vendored sources from bootstrap to generate-copyright) - #137073 (boostrap: skip no_std targets in Std doc step) - #137165 (Use `tell` for `<File as Seek>::stream_position`) - #137166 (Update default loongarch code model in docs) - #137168 (correct comment) - #137169 (CI: rfl: move job forward to Linux v6.14-rc3) - #137170 (Allow configuring jemalloc per target) - #137173 (Subtree update of `rust-analyzer`) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-18Move methods from `Map` to `TyCtxt`, part 2.Nicholas Nethercote-62/+52
Continuing the work started in #136466. Every method gains a `hir_` prefix, though for the ones that already have a `par_` or `try_par_` prefix I added the `hir_` after that.
2025-02-17librustdoc: more usages of `Joined::joined`Yotam Ofek-43/+61
2025-02-17Update host LLVM to 20.1 on CIJakub Beránek-1/+1
2025-02-17Fix what looks like an inverted messageEric Huss-1/+1
I believe this is trying to say there is something that is in the file, but shouldn't be.
2025-02-17Move error_index_generator to the rustbook workspaceEric Huss-16/+9
I had forgotten that error_index_generator is using mdbook. This moves it to be part of the rustbook workspace so that it can share the dependency with rustbook.
2025-02-17Update mdbook to 0.4.45Eric Huss-3/+3
Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0445
2025-02-17move dev docs to manualJosh Rotenberg-173/+201
fix formatting
2025-02-17coalesce match patterns with identical bodiesYotam Ofek-5/+6
2025-02-17use `Iterator::zip` instead of enumerating+indexingYotam Ofek-3/+3
2025-02-17Update `minifier-rs` version to `0.3.5`Guillaume Gomez-1/+1
2025-02-17Rollup merge of #137173 - lnicola:sync-from-ra, r=lnicolaMatthias Krüger-2949/+9573
Subtree update of `rust-analyzer` r? `@ghost`
2025-02-17Rollup merge of #137170 - ferrocene:pa-target-jemalloc, r=KobzolMatthias Krüger-3/+18
Allow configuring jemalloc per target In Ferrocene we're trying to switch from `./configure` to a predefined `config.toml` file. One of the limitations of doing that is the `rust.jemalloc` configuration option, which we need to conditionally disable based on the target. This PR adds a `target.$tuple.jemalloc` option to override `rust.jemalloc` to make that possible.
2025-02-17Rollup merge of #137169 - ojeda:rfl, r=lqdMatthias Krüger-2/+2
CI: rfl: move job forward to Linux v6.14-rc3 Linux v6.14-rc3 contains commit 6273a058383e ("x86: rust: set rustc-abi=x86-softfloat on rustc>=1.86.0"), which resolves the error from https://github.com/rust-lang/rust/pull/136146. r? `@lqd` `@Kobzol` try-job: x86_64-rust-for-linux `@rustbot` label A-rust-for-linux `@bors` try
2025-02-17Rollup merge of #137166 - nikic:loongarch-code-model, r=workingjubileeMatthias Krüger-1/+1
Update default loongarch code model in docs Since https://github.com/rust-lang/rust/pull/130266 loongarch defaults to medium code model.
2025-02-17Rollup merge of #137073 - niklaskorz:bootstrap-doc-fix-empty-no-std, r=clubby789Matthias Krüger-0/+4
boostrap: skip no_std targets in Std doc step This fixes a bug that currently prevents us from adding no_std library targets to rustc in nixpkgs (https://github.com/NixOS/nixpkgs/pull/382166). When running `./x.py doc`, the `Std` doc step generally fails for no_std targets, logs: https://gist.github.com/niklaskorz/fb83f9503ce19b75e8b1af02cdebd592 Skipping no_std targets in this step will allow using no_std targets such as `bpfel-unknown-none` together with other targets in the same config without blocking the doc generator for them, e.g. ``` ./configure --release-channel=stable --tools=rustc,rustdoc,rust-analyzer-proc-macro-srv --build=aarch64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin,bpfel-unknown-none ./x.py doc ``` Logs with this fix applied: https://gist.github.com/niklaskorz/cdd50aaea33ede579f737434286d800b
2025-02-17Rollup merge of #137020 - ferrocene:pa-vendor-sources, r=KobzolMatthias Krüger-82/+105
Pass vendored sources from bootstrap to generate-copyright In addition to doing the vendoring in bootstrap, this PR also loads the list of manifests to parse from bootstrap (instead of hardcoding a smaller list in generate-copyright). This is best reviewed commit-by-commit. Fixes https://github.com/rust-lang/rust/issues/136955
2025-02-17Use correct working directory for non-workspace proc-macro executionMehul Arora-31/+159
2025-02-17Auto merge of #135763 - nikic:llvm-20, r=cuviperbors-0/+4
Update to LLVM 20 LLVM 20 GA is scheduled for March 11th. Rust 1.87 will be stable on May 15th. * [x] https://github.com/rust-lang/rust/pull/135764 * [x] https://github.com/rust-lang/rust/pull/136134 * [x] https://github.com/rust-lang/compiler-builtins/pull/752 * [x] https://github.com/llvm/llvm-project/pull/125287 * [x] https://github.com/rust-lang/rust/pull/136537 * [x] https://github.com/rust-lang/rust/pull/136895 * [x] Wait for beta branch (Feb 14). Tested: host-x86_64, host-aarch64, apple, mingw, msvc
2025-02-17use the shared vendor impl for plan source tarballsPietro Albini-21/+17
2025-02-17Update lockfileLaurențiu Nicola-12/+12
2025-02-17Merge pull request #19169 from lnicola/sync-from-rustLaurențiu Nicola-3028/+5627
minor: Sync from downstream