about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-05-05Move primitive rustdoc tests into the `primitive` sub folderGuillaume Gomez-0/+0
2025-05-05Created `tests/rustdoc/enum` subfolder to limit number of files at the top levelGuillaume Gomez-0/+0
2025-05-05Created `tests/rustdoc/assoc` subfolder to limit number of files at the top ↵Guillaume Gomez-0/+0
level
2025-05-05Created `tests/rustdoc/impl` subfolder to limit number of files at the top levelGuillaume Gomez-0/+0
2025-05-05Created `tests/rustdoc/doc-cfg` subfolder to limit number of files at the ↵Guillaume Gomez-0/+0
top level
2025-05-05Created `tests/rustdoc/macro` subfolder to limit number of files at the top ↵Guillaume Gomez-0/+20
level
2025-05-05Created `tests/rustdoc/private` subfolder to limit number of files at the ↵Guillaume Gomez-0/+0
top level
2025-05-05Move intra-doc tests into the expected subfolderGuillaume Gomez-0/+0
2025-05-05Created `tests/rustdoc/jump-to-def` subfolder to limit number of files at ↵Guillaume Gomez-0/+0
the top level
2025-05-05Created `tests/rustdoc/auto` subfolder to limit number of files at the top levelGuillaume Gomez-0/+0
2025-05-05Created `tests/rustdoc/anchors` subfolder to limit number of files at the ↵Guillaume Gomez-0/+0
top level
2025-05-05Created `tests/rustdoc/source-code-pages` subfolder to limit number of files ↵Guillaume Gomez-0/+0
at the top level
2025-05-05Created `tests/rustdoc/reexports` subfolder to limit number of files at the ↵Guillaume Gomez-0/+22
top level
2025-05-02Auto merge of #140565 - GuillaumeGomez:rollup-gv4ed14, r=GuillaumeGomezbors-422/+755
Rollup of 12 pull requests Successful merges: - #138703 (chore: remove redundant words in comment) - #139186 (Refactor `diy_float`) - #139780 (docs: Add example to `Iterator::take` with `by_ref`) - #139802 (Fix some grammar errors and hyperlinks in doc for `trait Allocator`) - #140034 (simd_select_bitmask: the 'padding' bits in the mask are just ignored) - #140062 (std: mention `remove_dir_all` can emit `DirectoryNotEmpty` when concurrently written into) - #140420 (rustdoc: Fix doctest heuristic for main fn wrapping) - #140460 (Fix handling of LoongArch target features not supported by LLVM 19) - #140538 (rustc-dev-guide subtree update) - #140544 (Clean up "const" situation in format_args!(). ) - #140552 (allow `#[rustc_std_internal_symbol]` in combination with `#[naked]`) - #140556 (Improve error output in case `nodejs` or `npm` is not installed for rustdoc-gui test suite) r? `@ghost` `@rustbot` modify labels: rollup
2025-05-01Rollup merge of #140556 - ↵Guillaume Gomez-4/+13
GuillaumeGomez:improve-rustdoc-gui-tool-error-output, r=clubby789 Improve error output in case `nodejs` or `npm` is not installed for rustdoc-gui test suite Fixes https://github.com/rust-lang/rust/issues/138134. It now looks like this: ![Screenshot From 2025-05-01 17-41-12](https://github.com/user-attachments/assets/ae7f2b37-3619-47ff-941d-5d9a7cdd9b6b) cc ``@kpreid``
2025-05-01Rollup merge of #140552 - ↵Guillaume Gomez-1/+8
folkertdev:naked-function-rustc_std_internal_symbol, r=bjorn3 allow `#[rustc_std_internal_symbol]` in combination with `#[naked]` The need for this came up in https://github.com/rust-lang/compiler-builtins/pull/897, but in general this seems useful and valid to allow. Based on a quick scan, I don't think changes to the generated assembly are needed. cc ``@bjorn3``
2025-05-01Rollup merge of #140544 - m-ou-se:format-args-const-cleanup, r=fee1-deadGuillaume Gomez-63/+77
Clean up "const" situation in format_args!(). This cleans up the "const" situation in the format_args!() expansion/lowering. Rather than marking the Argument::new_display etc. functions as non-const, this marks the Arguments::new_v1 functions as non-const. Example expansion/lowering of format_args!() in const: ```rust // Error: cannot call non-const formatting macro in constant functions const { fmt::Arguments::new_v1( // Now the error is produced here. &["Hello, ", "!\n"], &[ fmt::Argument::new_display(&world) // The error used to be produced here. ], ) } ```
2025-05-01Rollup merge of #140538 - tshepang:rust-push, r=jieyouxuGuillaume Gomez-151/+393
rustc-dev-guide subtree update r? ``@ghost``
2025-05-01Rollup merge of #140460 - heiher:issue-140455, r=UrgauGuillaume Gomez-18/+25
Fix handling of LoongArch target features not supported by LLVM 19 Fixes #140455
2025-05-01Rollup merge of #140420 - fmease:rustdoc-fix-doctest-heur, r=GuillaumeGomezGuillaume Gomez-88/+182
rustdoc: Fix doctest heuristic for main fn wrapping Fixes #140412 which regressed in #140220 that I reviewed. As mentioned in https://github.com/rust-lang/rust/pull/140220#issuecomment-2837061779, at the time I didn't have the time to re-review its latest changes and should've therefore invalided my previous "r=me" and blocked the PR on another review given the fragile nature of the doctest impl. This didn't happen which is my fault. Contains some other small changes. Diff best reviewed modulo whitespace. r? ``@GuillaumeGomez``
2025-05-01Rollup merge of #140062 - xizheyin:issue-139958, r=workingjubileeGuillaume Gomez-0/+2
std: mention `remove_dir_all` can emit `DirectoryNotEmpty` when concurrently written into Closes #139958 The current documentation for `std::fs::remove_dir_all` function does not explicitly mention the error types that may be returned in concurrent scenarios. Specifically, when one thread attempts to remove a directory tree while another thread simultaneously writes files to that directory, the function may return an `io::ErrorKind::DirectoryNotEmpty` error, but this behavior is not clearly mentioned in the current documentation. r? libs
2025-05-01Rollup merge of #140034 - RalfJung:simd_select_bitmask-padding, r=workingjubileeGuillaume Gomez-45/+15
simd_select_bitmask: the 'padding' bits in the mask are just ignored Fixes https://github.com/rust-lang/rust/issues/137942: we documented simd_select_bitmask to require the 'padding' bits in the mask (the mask can sometimes be longer than the vector; I am referring to these extra bits as 'padding' here) to be zero, mostly because nobody felt like doing the research for what should be done when they are non-zero. However, codegen is already perfectly happy just ignoring them, so in practice they can have any value. Some of the intrinsic wrappers in stdarch have trouble ensuring that they are zero. So let's just adjust the docs and Miri to permit non-zero 'padding' bits. Cc ````@Amanieu```` ````@workingjubilee````
2025-05-01Rollup merge of #139802 - Lee-Janggun:fix-allocate-hyperlink, r=workingjubileeGuillaume Gomez-2/+4
Fix some grammar errors and hyperlinks in doc for `trait Allocator` I was reading the allocator docs and noticed some weird sentences and missing hyperlink, so I fixed them and made this small PR. * "while until either" could also be changed to "for a while until either", but I just deleted "while". * fixed sentence with incorrect "at" and "has/have". * linked [*currently allocated*] similar to other methods. All other hyperlinks are fine.
2025-05-01Rollup merge of #139780 - ongardie:iterator-take-by_ref-example, ↵Guillaume Gomez-0/+18
r=workingjubilee docs: Add example to `Iterator::take` with `by_ref` If you want to logically split an iterator after `n` items, you might first discover `take`. Before this change, you'd find that `take` consumes the iterator, and you'd probably be stuck. The answer involves `by_ref`, but that's hard to discover, especially since `by_ref` is a bit abstract and `Iterator` has many methods. After this change, you'd see the example showing `take` along with `by_ref`, which allows you to continue using the rest of the iterator. `by_ref` had a good example involving `take` already, so this change just duplicates that existing example under `take`.
2025-05-01Rollup merge of #139186 - TDecking:float, r=workingjubileeGuillaume Gomez-47/+15
Refactor `diy_float` The refactor replaces bespoke algorithms with functions already inside the standard library, improving both codegen and readability.
2025-05-01Rollup merge of #138703 - pudongair:master, r=workingjubileeGuillaume Gomez-3/+3
chore: remove redundant words in comment remove redundant words in comment
2025-05-01Auto merge of #139965 - amandasystems:marginally-improved-scc-annotations, ↵bors-171/+239
r=lcnr Decouple SCC annotations from SCCs This rewires SCC annotations to have them be a separate, visitor-type data structure. It was broken out of #130227, which needed them to be able to remove unused annotations after computation without recomputing the SCCs themselves. As a drive-by it also removes some redundant code from the hot loop in SCC construction for a performance improvement. r? lcnr
2025-05-01Improve error output in case `nodejs` or `npm` is not installed for ↵Guillaume Gomez-4/+13
rustdoc-gui test suite
2025-05-01allow `#[rustc_std_internal_symbol]` in combination with `#[naked]`Folkert de Vries-1/+8
2025-05-01Auto merge of #138522 - osiewicz:shared-generics-respect-visibility, r=bjorn3bors-12/+59
shared-generics: Do not share instantiations that contain local-only types In Zed shared-generics loading takes up a significant chunk of time in incremental build, as rustc deserializes rmeta of all dependencies of a crate. I've recently realized that shared-generics includes all instantiations of some_generic_function in the following snippet: ```rs pub fn some_generic_function(_: impl Fn()) {} pub fn non_generic_function() { some_generic_function(|| {}); some_generic_function(|| {}); some_generic_function(|| {}); some_generic_function(|| {}); some_generic_function(|| {}); some_generic_function(|| {}); some_generic_function(|| {}); } ``` even though none of these instantiations can actually be created from outside of `non_generic_function`. This is a dummy example, but we do rely on invoking callbacks with FnOnce a lot in our codebase. This PR makes shared-generics account for visibilities of generic arguments; an item is only considered for exporting if it is reachable from the outside or if all of it's arguments are visible outside of the local crate. This PR reduces incremental build time for Zed (touch editor.rs scenario) from 12.4s to 10.4s. I'd love to see a perf run if possible; per my checks this PR does not incur new instantiations in downstream crates, so if there'd be perf regressions, I'd expect them to come from newly-introduced visibility checks.
2025-05-01Bless pretty tests.Mara Bos-1/+1
2025-05-01Bless mir opt tests.Mara Bos-1/+1
2025-05-01rustdoc: Fix doctest heuristic for main fn wrappingLeón Orell Valerian Liehr-88/+182
2025-05-01Clean up "const" situation in format_args!().Mara Bos-27/+33
Rather than marking the Argument::new_display etc. functions as non-const, this marks the Arguments::new_v1 functions as non-const.
2025-05-01Move core::fmt::Arguments::new_v1* to rt.rs.Mara Bos-36/+44
2025-05-01Merge pull request #2367 from rust-lang/rustc-pullTshepang Mbambo-47689/+46788
Rustc pull update
2025-05-01Merge pull request #2368 from martinomburajr/masterTshepang Mbambo-4/+4
Adds 'with' to the bootstrapping docs to help clarify how to build a new compiler
2025-05-01Auto merge of #140145 - Zoxc:job-server-proxy, r=SparrowLiibors-29/+156
Add a jobserver proxy to ensure at least one token is always held This adds a jobserver proxy to ensure at least one token is always held by `rustc`. Currently with `-Z threads` `rustc` can temporarily give up all its tokens, causing `cargo` to spawn additional `rustc` instances beyond the job limit. The current behavior causes an issue with `cargo fix` which has a global lock preventing concurrent `rustc` instances, but it also holds a jobserver token, causing a deadlock when `rustc` gives up its token. That is fixed by this PR. Fixes https://github.com/rust-lang/rust/issues/67385. Fixes https://github.com/rust-lang/rust/issues/133873. Fixes https://github.com/rust-lang/rust/issues/140093.
2025-05-01adds commasMartin Ombura Jr.-2/+2
2025-05-01Merge from rustcThe rustc-dev-guide Cronjob Bot-47688/+46787
2025-05-01Preparing for merge from rustcThe rustc-dev-guide Cronjob Bot-1/+1
2025-05-01adds 'with' to help clarify how to build a new compilerMartin Ombura Jr.-2/+2
2025-05-01Remove redundant min-llvm-version annotations for LoongArch testsWANG Rui-18/+16
2025-04-30Auto merge of #121909 - Zoxc:drop-ast-task, r=petrochenkovbors-3/+26
Drop AST on a separate thread and prefetch `hir_crate` This drop AST on a separate thread and prefetches `hir_crate`. A `spawn` function is added to the `parallel` module which spawn some work on the Rayon thread pool.
2025-04-30Auto merge of #140529 - matthiaskrgr:rollup-jpaa2ky, r=matthiaskrgrbors-39598/+33315
Rollup of 10 pull requests Successful merges: - #140385 (Subtree update of `rust-analyzer`) - #140458 (Fix for async drop ice with partly dropped tuple) - #140465 (chore: edit and move tests) - #140467 (Don't FCW assoc consts in patterns) - #140468 (Minor tweaks to make some normalization (adjacent) code less confusing) - #140470 (CI: rfl: move job forward to Linux v6.15-rc4) - #140476 (chore: delete unused ui/auxiliary crates) - #140481 (Require sanitizers be enabled for asan_odr_windows.rs) - #140486 (rustfmt: Also allow bool literals as first item of let chain) - #140494 (Parser: Document restrictions) r? `@ghost` `@rustbot` modify labels: rollup
2025-04-30Rollup merge of #140494 - ehuss:document-restrictions, r=traviscross,SparrowLiiMatthias Krüger-0/+49
Parser: Document restrictions I had trouble easily understanding what these various flags do. This is my attempt to try to explain what these do.
2025-04-30Rollup merge of #140486 - calebcartwright:rustfmt-let-chain-bool-lit, ↵Matthias Krüger-15/+17
r=calebcartwright rustfmt: Also allow bool literals as first item of let chain This is a functional cherry-pick of https://github.com/rust-lang/rustfmt/pull/6492 I'm bringing this change over directly as the subtree sync is taking more effort than anticipated (some unrelated r-l/rustfmt changes need to be reverted before we perform the full sync) and we need to ensure that rustfmt behavior accounts with the final style guide rules as part of let chain stabilization. r? ````@ghost````
2025-04-30Rollup merge of #140481 - dpaoliello:reqasan, r=wesleywiserMatthias Krüger-0/+2
Require sanitizers be enabled for asan_odr_windows.rs Issue Details: The `asan_odr_windows.rs` test is failing on AArch64 Windows, as sanitizers aren't supported on that platform. Fix Details: Apply the correct "need sanitizer" requirements to the test.
2025-04-30Rollup merge of #140476 - mejrs:test3, r=jieyouxuMatthias Krüger-61/+0
chore: delete unused ui/auxiliary crates It appears that all the tests that used it have been moved to tests/ui/editions/ (or elsewhere) already. r? `````@jieyouxu`````
2025-04-30Rollup merge of #140470 - ojeda:rfl, r=lqdMatthias Krüger-1/+1
CI: rfl: move job forward to Linux v6.15-rc4 A hopefully routine upgrade to Linux v6.15-rc4! r? `````@lqd````` `````@Kobzol````` try-job: x86_64-rust-for-linux `````@rustbot````` label A-rust-for-linux `````@bors````` try