about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-10-02rustdoc: use same stage for all pr check docsMichael Howell-1/+1
2025-10-02search.js: introduce optimized removeIdxListAsc routinebinarycat-9/+30
2025-10-02if a trait item is shown in search results, hide the impl itembinarycat-61/+174
for example, if we're showing `Iterator::next`, we don't need to also show `Range::next` in the results. Co-authored-by: Michael Howell <michael@notriddle.com>
2025-09-21Implement output of colored messages with optional check contextJakub Beránek-55/+152
2025-09-21Migrate the remaining tidy checks to diagnosticsJakub Beránek-572/+560
2025-09-21Add `CheckId`, migrate the `alphabetical` check to diagnosticsJakub Beránek-45/+63
2025-09-21Add diagnostics context and migrate the `style` check to itJakub Beránek-89/+187
2025-09-20Rollup merge of #146774 - Kobzol:bootstrap-relative-path, r=jieyouxuMatthias Krüger-5/+17
Allow running `x <cmd> <path>` from a different directory Fixes: https://github.com/rust-lang/rust/issues/146772 r? ``@jieyouxu``
2025-09-20Rollup merge of #146762 - madsmtm:test-apple-sim, r=jieyouxuMatthias Krüger-45/+66
Fix and provide instructions for running test suite on Apple simulators The following now works: ```sh ./x test --host='' --target aarch64-apple-ios-sim --skip tests/debuginfo ./x test --host='' --target aarch64-apple-tvos-sim --skip tests/debuginfo ./x test --host='' --target aarch64-apple-watchos-sim --skip tests/debuginfo ./x test --host='' --target aarch64-apple-visionos-sim --skip tests/debuginfo ``` I have documented the setup I used [in the `rustc-dev-guide`](https://rustc-dev-guide.rust-lang.org/tests/running.html#testing-on-emulators), it's fairly standard use of `remote-test-server` (with a small fix to library load paths which I've made in the first commit). I first tried the somewhat simpler `target.aarch64-apple-ios-sim.runner = "xcrun simctl spawn $UDID"`, but that doesn't work as required libraries etc. also need to be copied to the device. The debuginfo tests fail, I think because the debug info in `.dSYM` isn't available. I am yet unsure exactly how to fix this, either we need to copy that directory to the target as well, or we need to configure `lldb` somehow to read it from the host. I decided to not add this to our CI, since I suspect we wouldn't gain much from it? Running on the simulator still uses the host Darwin kernel, it's basically just configured to run in another mode with more restricted permissions and different system libraries. r? jieyouxu CC ``@simlay,`` you're a lot more familiar with `xcrun simctl` than I.
2025-09-20Auto merge of #146805 - lnicola:sync-from-ra, r=lnicolabors-9245/+38642
`rust-analyzer` subtree update Subtree update of `rust-analyzer` to https://github.com/rust-lang/rust-analyzer/commit/0c62c01aae05639bbc0605ade5435dfa6da96307. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-09-20Auto merge of #146771 - Kobzol:download-ci-llvm-default-value, r=jieyouxubors-11/+4
Simplify default value of `download-ci-llvm` Just set it to true, rather than having different default values on CI and locally, and then only deny `true` on our own CI, not elsewhere. Closes: https://github.com/rust-lang/rust/issues/146768 r? `@jieyouxu`
2025-09-20Bump rustc crates once moreLaurențiu Nicola-34/+32
2025-09-19Simplify default value of `download-ci-llvm`Jakub Beránek-11/+4
2025-09-19Merge pull request #20701 from A4-Tacks/track-caller-assist-testChayim Refael Friedman-0/+1
Add `#[track_caller]` for check_assist_by_label
2025-09-19Allow running `x <cmd> <path>` from a different directoryJakub Beránek-5/+17
2025-09-19Merge pull request #20697 from Oblarg/fix-negative-const-generic-literalsShoyu Vanilla (Flint)-1/+47
fix negative const generic integer literals
2025-09-19address review feedbackOblarg-0/+23
2025-09-19minor: Get rid of unused deps `chalk-solve` and `chalk-recursive`Shoyu Vanilla-88/+16
2025-09-19Rollup merge of #146740 - RalfJung:miri, r=RalfJungStuart Cook-1734/+7444
miri subtree update Subtree update of `miri` to https://github.com/rust-lang/miri/commit/5a142000d23c75684315e63cad0fb4e2fbcd8bc2. Created using https://github.com/rust-lang/josh-sync. r? ``@ghost``
2025-09-19Rollup merge of #146738 - beepster4096:widnows, r=jieyouxuStuart Cook-1/+1
Fix tidy spellchecking on Windows Tidy should now check for executable with the right extension for the platform when installing tools
2025-09-19Rollup merge of #146663 - erickt:win, r=wesleywiserStuart Cook-0/+14
Allow windows resource compiler to be overridden In rust-lang/rust#146018, it is now required to provide a resource compiler on windows when compiling rust. This allows toolchain builders to explicitly provide a path to an alternative, such as llvm-rc, instead of the one that's provided by the Windows SDK. cc ```@lambdageek```
2025-09-19Rollup merge of #146484 - notriddle:stringdex-js-opt, r=GuillaumeGomezStuart Cook-140/+290
rustdoc-search: JavaScript optimization based on Firefox Profiler output Part of https://github.com/rust-lang/rust/issues/146048 Preview: https://notriddle.com/rustdoc-html-demo-12/stringdex-js-opt/std/index.html These commits are based on some profiler readings, and should reduce CPU usage for name-based searching. - The first commit improves warm searches by allocating less garbage when data is already loaded: Before: https://profiler.firefox.com/public/wvzd88m8r70p8frvz1z628tv3htwna0b9c0ef10/calltree/?globalTrackOrder=0w2&implementation=js&thread=3&v=11 After: https://profiler.firefox.com/public/yfe9aq6ep3kacw3zmr7jqn6gv7ckfq86rg89568/calltree/?globalTrackOrder=0w2&implementation=js&thread=3&v=11 - The second commit improves cold searches by delaying load for special type names until type-based search runs Before: 5.86s (throttled to "Good 2G" in Dev Tools) <https://doc.rust-lang.org/nightly/std/index.html?search=> <img width="2524" height="919" alt="image" src="https://github.com/user-attachments/assets/8dbbbd46-b7ab-4e3c-9e8c-f1e41cfaa968" /> After: 5.77s (throttled to "Good 2G" in Dev Tools) <https://notriddle.com/rustdoc-html-demo-12/stringdex-js-opt/std/index.html?search=> <img width="2524" height="912" alt="image" src="https://github.com/user-attachments/assets/6976a584-24f4-4d47-8118-7a81b22d411e" /> For comparison's sake, the same test takes 12.17s on stable <https://doc.rust-lang.org/1.89.0/std/index.html?search=> <img width="2525" height="916" alt="image" src="https://github.com/user-attachments/assets/eb6df2e8-6632-4bef-a6d0-5179c6288fd0" />
2025-09-19Document how to test with iOS/tvOS/watchOS/visionOS simulatorMads Marquart-41/+51
2025-09-19Allow running remote-test-server on Apple simulatorsMads Marquart-4/+15
2025-09-19fix miri bootstrap buildRalf Jung-2/+16
2025-09-19Add `#[track_caller]` for check_assist_by_labelA4-Tacks-0/+1
2025-09-19Set WithCachedTypeInfo::stable_hash when in-treeLaurențiu Nicola-0/+6
2025-09-18fix negative const generic integer literalsOblarg-1/+24
2025-09-18Merge pull request #4592 from RalfJung/sqrtRalf Jung-38/+54
implement sqrt for f16 and f128
2025-09-18fix tidy spellchecking on windowsbeepster4096-1/+1
2025-09-18share sqrt implemention across float typesRalf Jung-39/+25
2025-09-18implement sqrt for f16 and f128Ralf Jung-15/+45
2025-09-18Merge pull request #4583 from Patrick-6/miri-genmc-estimationRalf Jung-170/+395
Add GenMC estimation mode.
2025-09-19fix: Fix one more thing in `in-rust-tree`Shoyu Vanilla-1/+1
2025-09-18tweak genmc error report noteRalf Jung-14/+23
2025-09-18Merge pull request #20694 from ShoyuVanilla/bump-rustcLaurențiu Nicola-49/+62
minor: Yet another rustc crates bump
2025-09-19minor: Yet another rustc crates bumpShoyu Vanilla-49/+62
2025-09-19fix: Fix `indexmap` with `in-rust-tree`Shoyu Vanilla-6/+1
2025-09-18Allow windows resource compiler to be overriddenErick Tryzelaar-0/+14
It is now required to provide a resource compiler on windows when compiling rust. This allows toolchain builders to explicitly provide a path to an alternative, such as llvm-rc, instead of the one that's provided by the Windows SDK.
2025-09-18Bump rustc crates againLaurențiu Nicola-57/+50
2025-09-18Merge commit '20ce69b9a63bcd2756cd906fe0964d1e901e042a' into ↵Philipp Krones-2474/+4375
clippy-subtree-update
2025-09-18chore: Update rustc depsShoyu Vanilla-30/+44
2025-09-18Auto merge of #146671 - ZuseZ4:update-enzyme-submodule, r=davidtwcobors-0/+0
update enzyme submodule I upstreamed a few of our rust-lang/Enzyme patches, so I could drop them in our fork. r? compiler
2025-09-18Add GenMC estimation mode. Improve error handling and output printing.Patrick-6-170/+386
2025-09-18Rollup merge of #146694 - camsteffen:impl-subject, r=compiler-errorsStuart Cook-5/+5
Remove ImplSubject It only has one usage in rustdoc.
2025-09-18Rollup merge of #146664 - fmease:clean-up-dyn, r=jdonszelmannStuart Cook-4/+4
Clean up `ty::Dynamic` 1. As a follow-up to PR rust-lang/rust#143036, remove `DynKind` entirely. 2. Inside HIR ty lowering, consolidate modules `dyn_compatibility` and `lint` into `dyn_trait` * `dyn_compatibility` wasn't about dyn compatibility itself, it's about lowering trait object types * `lint` contained dyn-Trait-specific diagnostics+lints only
2025-09-18Rollup merge of #146645 - yotamofek:pr/rustdoc/fndecl_inner_full_print, r=fmeaseStuart Cook-51/+62
Cleanup `FnDecl::inner_full_print` `inner_full_print` was pretty hard to follow IMHO. Hopefully this cleans it up a little bit. Also, it was checking whether `self.inputs` is empty twice, and then handling an unreachable match arm: https://github.com/yotamofek/rust/blob/f836ae4e663b6e8938096b8559e094d18361be55/src/librustdoc/html/format.rs#L1368C1-L1368C33 `last_input_index` could only be `None` if the fn has no parameters, in which case the loop body would never run. r? ``@GuillaumeGomez`` if you have the capacity :) BTW, can we rename `FnDecl::inputs` to `parameters` or something? And `output` to `return_ty`?
2025-09-18Merge pull request #20664 from ChayimFriedman2/coerce-nsChayim Refael Friedman-3944/+9358
fix: Port a bunch of stuff from rustc and fix a bunch of type mismatches/diagnostics
2025-09-17Remove ImplSubjectCameron Steffen-5/+5
2025-09-17Merge pull request #4589 from LorrensP-2158466/freebsd-readdirRalf Jung-27/+46
support `readdir` on FreeBSD