about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-09-04Implement compiletest `--new-output-capture`, in stable RustZalathar-2/+76
2025-09-04Auto merge of #146185 - Zalathar:rollup-n14lyv6, r=Zalatharbors-182/+217
Rollup of 24 pull requests Successful merges: - rust-lang/rust#140459 (Add `read_buf` equivalents for positioned reads) - rust-lang/rust#143725 (core: add Peekable::next_if_map) - rust-lang/rust#145209 (Stabilize `path_add_extension`) - rust-lang/rust#145342 (fix drop scope for `super let` bindings within `if let`) - rust-lang/rust#145750 (raw_vec.rs: Remove superfluous fn alloc_guard) - rust-lang/rust#145827 (On unused binding or binding not present in all patterns, suggest potential typo of unit struct/variant or const) - rust-lang/rust#145932 (Allow `inline(always)` with a target feature behind a unstable feature `target_feature_inline_always`.) - rust-lang/rust#145962 (Ensure we emit an allocator shim when only some crate types need one) - rust-lang/rust#145963 (Add LSX accelerated implementation for source file analysis) - rust-lang/rust#146054 (add `#[must_use]` to `array::repeat`) - rust-lang/rust#146090 (Derive `PartialEq` for `InvisibleOrigin`) - rust-lang/rust#146112 (don't uppercase error messages) - rust-lang/rust#146120 (Correct typo in `rustc_errors` comment) - rust-lang/rust#146124 (Test `rustc-dev` in `distcheck`) - rust-lang/rust#146127 (Rename `ToolRustc` to `ToolRustcPrivate`) - rust-lang/rust#146131 (rustdoc-search: add test case for indexing every item type) - rust-lang/rust#146134 (llvm: nvptx: Layout update to match LLVM) - rust-lang/rust#146136 (docs(std): add missing closing code block fences in doc comments) - rust-lang/rust#146137 (Disallow frontmatter in `--cfg` and `--check-cfg` arguments) - rust-lang/rust#146140 (compiletest: cygwin follows windows in using PATH for dynamic libraries) - rust-lang/rust#146150 (fix(rustdoc): match rustc `--emit` precedence ) - rust-lang/rust#146155 (Make bootstrap self test parallel) - rust-lang/rust#146161 ([rustdoc] Uncomment code to add scraped rustdoc examples in loaded paths) - rust-lang/rust#146172 (triagebot: configure some pings when certain attributes are used) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-03rustdoc-search: yet another stringdex optimization attemptMichael Howell-162/+645
This one's uses a different tactic. It shouldn't significantly increase the amount of downloaded index data, but still reduces the amount of disk usage. This one works by changing the suffix-only node representation to omit some data that's needed for checking. Since those nodes make up the bulk of the tree, it reduces the data they store, but also requires validating the match by fetching the name itself (but the names list is pretty small, and when I tried it with wordnet "indexing" it was about the same).
2025-09-04Rollup merge of #146172 - RalfJung:triagebot-keyword-mentions, r=UrgauStuart Cook-1/+6
triagebot: configure some pings when certain attributes are used Let's try this out in practice. :) Cc `@rust-lang/miri` `@rust-lang/wg-const-eval` `@Urgau`
2025-09-04Rollup merge of #146161 - GuillaumeGomez:loaded-paths-scraped-examples, ↵Stuart Cook-6/+4
r=lolbinarycat [rustdoc] Uncomment code to add scraped rustdoc examples in loaded paths Since the bug was fixed in https://github.com/rust-lang/rust/pull/146091, we can now uncomment the code. :) r? lolbinarycat
2025-09-04Rollup merge of #146155 - Shourya742:2025-09-03-make-test-run-parallel, r=KobzolStuart Cook-45/+25
Make bootstrap self test parallel This PR refactors the bootstrap self test: 1. Replaced the hardcoded --test-threads=1 with std::thread::available_parallelism(), allowing tests to run with the maximum concurrency supported by the system. 2. Replaced custom hacks around OUT_DIR with TempDir and introduced TestCtx to simplify configuration setup. r? `@Kobzol`
2025-09-04Rollup merge of #146150 - weihanglo:rustdoc-emit, r=aDotInTheVoidStuart Cook-2/+9
fix(rustdoc): match rustc `--emit` precedence Resolves rust-lang/rust#141664 This changes rustdoc's `--emit` to allow only one instance of each type, regardless of the actual data that `--emit` carries. This matches rustc's `--emit` behavior. As of the writing, only `dep-info` emit type carries extra data.
2025-09-04Rollup merge of #146140 - jeremyd2019:patch-1, r=jieyouxuStuart Cook-1/+1
compiletest: cygwin follows windows in using PATH for dynamic libraries `@Berrysoft`
2025-09-04Rollup merge of #146131 - notriddle:rustdoc-search-load-itemtype-test, ↵Stuart Cook-1/+1
r=GuillaumeGomez rustdoc-search: add test case for indexing every item type Test case for https://github.com/rust-lang/rust/pull/146117
2025-09-04Rollup merge of #146127 - Kobzol:rename-tool-rustc, r=jieyouxuStuart Cook-63/+71
Rename `ToolRustc` to `ToolRustcPrivate` I think that this name gets the point across much better. r? ````@jieyouxu````
2025-09-04Rollup merge of #146124 - Kobzol:distcheck-ext, r=jieyouxuStuart Cook-62/+99
Test `rustc-dev` in `distcheck` Adds a new `distcheck` test component. Fixes: https://github.com/rust-lang/rust/issues/138646 r? ``@jieyouxu`` try-job: x86_64-gnu-distcheck
2025-09-04Rollup merge of #146112 - scrabsha:push-utkysktvulto, r=WaffleLapkinStuart Cook-1/+1
don't uppercase error messages
2025-09-03Auto merge of #146156 - RalfJung:miri, r=RalfJungbors-630/+1663
miri subtree update Subtree update of `miri` to https://github.com/rust-lang/miri/commit/883dbf03e2a82ed7922122d8c2c2c60a5844b90d. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-09-03Fix some broken linksEmmet Horgan-9/+9
Signed-off-by: Emmet Horgan <horgan098@gmail.com>
2025-09-03support keyword-based mentions in tidyRalf Jung-1/+6
2025-09-03fix applying an error to infinitiesRalf Jung-0/+8
2025-09-04fix: offline rustdoc html missing faviconKumar Ujjawal-2/+29
2025-09-03Reduce bootstrap's dependenciesDaniel Paoliello-34/+108
2025-09-03htmldocck: fix a bug in relative paths / globsMichael Howell-1/+1
This bug only shows up when you run htmldocck in a directory other than outdir, and also use globs. Never happened before, which is why we're only seeing it now.
2025-09-03Uncomment code to add scraped rustdoc examples in loaded pathsGuillaume Gomez-6/+4
2025-09-03Check `rustc-dev` in `distcheck`Jakub Beránek-18/+50
2025-09-03Merge pull request #4506 from Patrick-6/miri-genmc-mvpRalf Jung-481/+3667
Add minimal functionality for using GenMC mode
2025-09-03don't uppercase error messagesSasha Pourcelot-1/+1
a more general version of https://github.com/rust-lang/rust/pull/146080. after a bit of hacking in [`fluent.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_fluent_macro/src/fluent.rs), i discovered that i'm not the only one that is bad at following guidelines :sweat_smile:. this pr lowercases the first letter of all the error messages in the codebase. (i did not change things that are traditionally uppercased such as _MIR_, _ABI_ or _C_) i think it's reasonable to run a `@bors try` so all the test suite is checked, as i cannot run some of the tests on my machine. i double checked (and replaced manually) all the old error messages, but better be safe than sorry. in the future i will try to add a check in `x test tidy` that errors if an error message starts with an uppercase letter.
2025-09-03Add applicable on bang `!` for apply_demorganA4-Tacks-7/+28
Example --- ```rust fn f() { $0!(1 || 3 && 4 || 5) } ``` -> ```rust fn f() { !1 && !(3 && 4) && !5 } ```
2025-09-03Rollup merge of #146154 - ojeda:rfl, r=lqdStuart Cook-1/+2
CI: rfl: move job forward to Linux v6.17-rc3 plus 2 commits This upgrades the Rust CI from v6.16-rc1 plus a temporary commit for the >= 1.91 target spec [1] to v6.17-rc3 with two commits pending to be merged upstream -- one for the same target spec format change [1] and another for the `file_as_c_str` change [2]. Link: https://github.com/rust-lang/rust/pull/144443 [1] Link: https://github.com/rust-lang/rust/pull/145928 [2] r? ``@lqd`` ``@Kobzol`` try-job: x86_64-rust-for-linux ``@rustbot`` label A-rust-for-linux ``@bors`` try
2025-09-03Rollup merge of #145944 - alexcrichton:native-wasip2, r=tgross35Stuart Cook-1/+15
std: Start supporting WASIp2 natively This commit is the start of an effort to support WASIp2 natively in the standard library. Before this commit the `wasm32-wasip2` target behaved exactly like `wasm32-wasip1` target by importing APIs from the core wasm module `wasi_snapshot_preview1`. These APIs are satisfied by the `wasm-component-ld` target by using an [adapter] which implements WASIp1 in terms of WASIp2. This adapter comes at a cost, however, in terms of runtime indirection and instantiation cost, so ideally the adapter would be removed entirely. The purpose of this adapter was to provide a smoother on-ramp from WASIp1 to WASIp2 when it was originally created. The `wasm32-wasip2` target has been around for long enough now that it's much more established. Additionally the only thing historically blocking using WASIp2 directly was implementation effort. Work is now underway to migrate wasi-libc itself to using WASIp2 directly and now seems as good a time as any to migrate the Rust standard library too. Implementation-wise the milestones here are: * The `wasm32-wasip2` target now also depends on the `wasi` crate at version 0.14.* in addition to the preexisting dependency of 0.11.*. The 0.14.* release series binds WASIp2 APIs instead of WASIp1 APIs. * Some preexisting naming around `mod wasi` or `wasi.rs` was renamed to `wasip1` where appropriate. For example `std::sys::pal::wasi` is now called `std::sys::pal::wasip1`. * More platform-specific WASI modules are now split between WASIp1 and WASIp2. For example getting the current time, randomness, and process arguments now use WASIp2 APIs directly instead of using WASIp1 APIs that require an adapter. It's worth pointing out that this PR does not migrate the entire standard library away from using WASIp1 APIs on the `wasm32-wasip2` target. Everything related to file descriptors and filesystem APIs is still using WASIp1. Migrating that is left for a future PR. In the meantime the goal of this change is to lay the groundwork necessary for migrating in the future. Eventually the goal is to drop the `wasi` 0.11.* dependency on the `wasm32-wasip2` target (the `wasm32-wasip1` target will continue to retain this dependency). [adapter]: https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasi-preview1-component-adapter/README.md
2025-09-03Rollup merge of #145414 - Kmeakin:km/unicode-table-refactors, ↵Stuart Cook-149/+143
r=joshtriplett,tgross35 unicode-table-generator refactors Split off from https://github.com/rust-lang/rust/pull/145219
2025-09-03remove thread option from self-test invocationbit-aloo-2/+1
2025-09-03unstable book: in a sanitizer example, check the codeFolkert de Vries-16/+16
this uses some # directives to make sure the code works on x86_64, and does not produce errors on other platforms
2025-09-03Implement basic support for running Miri with GenMC.Patrick-6-429/+3572
- Implement memory allocation compatible with GenMC. - Extract address generator struct from Miri's allocator. - Support thread creation and joining. - Support atomic load and store. - Support scheduling through GenMC. - Add tests for GenMC mode. - Add clang-format file for C++ code in Miri. - Update genmc-sys crate license to MIT/Apache to match GenMC dependency. - Add documentation for GenMC mode. Note: this commit depends on changes to GenMC not yet upstreamed to its official repository. Co-authored-by: Ralf Jung <post@ralfj.de>
2025-09-03Extract address generator struct from memory allocator.Patrick-6-52/+95
2025-09-03Merge pull request #4562 from RalfJung/ciRalf Jung-10/+9
re-balance CI
2025-09-03no need to run GC_STRESS more than once for each OSRalf Jung-6/+4
2025-09-03Merge pull request #4561 from RalfJung/short-fd-opsRalf Jung-19/+50
add flag to not shorten FD reads/writes; don't shorten pipe operations
2025-09-03re-balance CIRalf Jung-4/+5
2025-09-03add flag to not shorten FD reads/writes; don't shorten pipe operationsRalf Jung-19/+50
2025-09-03CI: rfl: move job forward to Linux v6.17-rc3 plus 2 commitsMiguel Ojeda-1/+2
This upgrades the Rust CI from v6.16-rc1 plus a temporary commit for the >= 1.91 target spec [1] to v6.17-rc3 with two commits pending to be merged upstream -- one for the same target spec format change [1] and another for the `file_as_c_str` change [2]. Link: https://github.com/rust-lang/rust/pull/144443 [1] Link: https://github.com/rust-lang/rust/pull/145928 [2] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-09-03Add note about trailing whitespace in string literals.Josh Triplett-1/+4
2025-09-03Add `funnel_sh{l,r}` functions and intrinsicssayantn-1/+51
- Add a fallback implementation for the intrinsics - Add LLVM backend support for funnel shifts Co-Authored-By: folkertdev <folkert@folkertdev.nl>
2025-09-03Make test parallelbit-aloo-3/+2
Use std::thread::available_parallelism() instead of hardcoded --test-threads=1 in bootstrap tests.
2025-09-03refactor tests to use TestCtxbit-aloo-42/+24
2025-09-03Merge pull request #4558 from RalfJung/float-err-fixOli Scherer-69/+103
fix mangitude of applied float error
2025-09-03Split distcheck logic into functionsJakub Beránek-55/+60
2025-09-03thread parking: fix docs and examplesRalf Jung-0/+1
2025-09-03Rename `ToolRustc` to `ToolRustcPrivate`Jakub Beránek-63/+71
2025-09-03fix(rustdoc): match rustc `--emit` precedenceWeihang Lo-2/+9
Change rustdoc's `--emit` to allow only one instance of each type, regardless of the actual data that `--emit` carries. This matches rustc's `--emit` behavior. As of the writing, only `dep-info` emit type carries extra data. See <https://github.com/rust-lang/rust/issues/141664>
2025-09-03Merge pull request #4559 from nia-e/zed-configRalf Jung-0/+47
Add Zed editor config
2025-09-03fix mangitude of applied float errorRalf Jung-69/+103
2025-09-03fixes auto-run js checks in tidyFrancescoV1985-13/+13
2025-09-03Merge pull request #20586 from ChayimFriedman2/placeholder-nsShoyu Vanilla (Flint)-233/+324
fix: Make sense of the mess that were (are) different kind of generics in the solver