about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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
2025-09-03Merge ref '51ff895062ba' from rust-lang/rustThe Miri Cronjob Bot-221/+336
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 51ff895062ba60a7cba53f57af928c3fb7b0f2f4 Filtered ref: 5057370cda58bcaad24ea094ec11c8c01b24c2bc This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-03Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to 51ff895062ba60a7cba53f57af928c3fb7b0f2f4.
2025-09-03add zed editor configNia Espera-0/+47
2025-09-02compiletest: cygwin follows windows in using PATH for dynamic librariesjeremyd2019-1/+1
2025-09-02Auto merge of #146076 - Kobzol:bootstrap-compiletest, r=jieyouxubors-222/+279
Consolidate staging for compiletest steps in bootstrap This PR finishes the initial pass of refactorings that fixed up staging of various bootstrap steps after the stage0 redesign. Now the *real* refactorings can begin =D It fixes the unnecessary stage2 build of cargo for run-make tests (https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/run-make.20cargo.20staging/with/536662651), and also consolidates staging of messages printed by bootstrap for test steps (`Testing stageN...` etc.). r? `@jieyouxu`
2025-09-03Fix closure in match not applicable for add_bracesA4-Tacks-2/+31
Example --- **Not applicable**: ```rust fn foo() { match () { () => { t(|n|$0 n + 100); } } } ```