about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-03-25Merge pull request #19446 from Veykril/push-olslsvoxlxwkLukas Wirth-2/+21
ci: run `intern` tests via `cargo miri`
2025-03-25Rollup merge of #138652 - ferrocene:pa-remote-test-rmake, r=jieyouxuTakayuki Maeda-1/+14
Reintroduce remote-test support in run-make tests The old Makefile-based infrastructure included support for executing binaries with remote-test-client if configured, but that didn't get ported to run_make_support as part of the rmake migration. This PR re-introduces back that support, with the same implementation (and limitations) of the original Makefile-based support. [Old Makefile-based implementation of this](https://github.com/rust-lang/rust/blob/9b8accbeb6336fa24d02b2a8bcaecaf44fe2bb65/tests/run-make/tools.mk#L65-L74) try-job: armhf-gnu
2025-03-25Rollup merge of #138385 - nnethercote:keyword-tweaks, r=NoratriebTakayuki Maeda-1/+1
Keyword tweaks r? ```@Noratrieb```
2025-03-25add more completion about "impl"Hegui Dai-22/+76
2025-03-25ci: run `intern` tests via `cargo miri`Lukas Wirth-2/+21
2025-03-24analysis-stats: redesign printing of item tree statsDavid Barsky-11/+23
2025-03-24Remove fields that are dead since the removal of type ascription syntaxLeón Orell Valerian Liehr-2/+0
Since `{ ident: ident }` is a parse error, these fields are dead.
2025-03-24analysis-stats: expose and print some limited statistics from `hir-def`David Barsky-3/+90
2025-03-24analysis-stats: cleanup printing of some workspace statsDavid Barsky-11/+14
2025-03-24analysis-stats: add `UsizeWithUnderscore` for readability of large numbersDavid Barsky-1/+30
2025-03-24analysis-stats: always print source statsDavid Barsky-27/+20
2025-03-24analysis-stats: emit lines of code and item tree counts for workspace; ↵David Barsky-25/+62
dependencies
2025-03-24happy tidyklensy-1/+0
2025-03-24refactor: Replace custom `ThinVec` with `thin-vec` crateLukas Wirth-543/+99
2025-03-24Remove `is_any_keyword` methods.Nicholas Nethercote-1/+1
They're dodgy, covering all the keywords, including weak ones, and edition-specific ones without considering the edition. They have a single use in rustfmt. This commit changes that use to `is_reserved_ident`, which is a much more widely used alternative and is good enough, judging by the lack of effect on the test suite.
2025-03-24Merge pull request #19435 from Veykril/push-owstqqlrtskoLukas Wirth-5/+6
fix: Fix closure return inlayhints using macro ranges
2025-03-24Merge pull request #19422 from Veykril/push-xlmxtopzlmxmLukas Wirth-27/+16
chore: Cleanup vscode extension output channels
2025-03-24Merge pull request #19436 from lnicola/rm-rustc-hashesLaurențiu Nicola-5/+1
minor: drop `rustc_hashes` dependency, add `syn` feature
2025-03-24Merge pull request #19430 from Veykril/push-wknpypxuyrszLukas Wirth-200/+231
chore: Bump dependencies
2025-03-24fix: Fix closure return inlayhints using macro rangesLukas Wirth-5/+6
2025-03-24chore: Cleanup vscode extension output channelsLukas Wirth-27/+16
2025-03-24Add missing syn featureLaurențiu Nicola-1/+1
2025-03-24Drop rustc_hashes dependencyLaurențiu Nicola-4/+0
2025-03-24fix(ide-assists): `let else` to `if let else`Prajwal S N-8/+41
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-24fix: Yet another false positive invalid cast diagnosticShoyu Vanilla-26/+134
2025-03-23Use zip/deflate-flate2 to avoid BSL-1.0 depLaurențiu Nicola-34/+1
2025-03-23Say which test failed the `COMPILETEST_REQUIRE_ALL_LLVM_COMPONENTS` assertionJieyou Xu-4/+5
2025-03-23Merge pull request #19400 from Shourya742/2025-03-20-fix-syntax-highlightingLukas Wirth-18/+77
Fix missing syntax highlighting for `&raw const` / `&raw mut` in all files.
2025-03-23chore: Bump dependenciesLukas Wirth-197/+261
2025-03-23chore: Remove unused dependenciesLukas Wirth-96/+45
2025-03-22Auto merge of #138831 - matthiaskrgr:rollup-3t0dqiz, r=matthiaskrgrbors-4/+1
Rollup of 7 pull requests Successful merges: - #138609 (Add stack overflow handler for cygwin) - #138639 (Clean UI tests 2 of n) - #138773 (catch_unwind intrinsic: document return value) - #138782 (test(ui): add tuple-struct-where-clause-suggestion ui test for #91520) - #138794 (expand: Do not report `cfg_attr` traces on macros as unused attributes) - #138801 (triagebot: add autolabel rules for D-* and L-*) - #138804 (Allow inlining for `Atomic*::from_ptr`) r? `@ghost` `@rustbot` modify labels: rollup
2025-03-22Merge pull request #19419 from ShoyuVanilla/issue-15132Lukas Wirth-7/+73
Render layout and other extra information on hovering `Self`
2025-03-22Merge pull request #19416 from ShoyuVanilla/issue-15037Lukas Wirth-71/+91
fix: Handle multiple `#[repr(..)]` attrs correctly
2025-03-22Improve contributing/README.mdBenjaminBrienen-8/+8
2025-03-22Render layout and other extra informations on hovering `Self`Shoyu Vanilla-7/+73
2025-03-22Rollup merge of #138639 - spencer3035:clean-ui-tests-2-of-n, r=jieyouxuMatthias Krüger-4/+1
Clean UI tests 2 of n Modified 4 tests in tests/ui. Cleaned 3 and deleted one. I have a final commit changing the values in `src/tools/tidy/src/ui_tests.rs`. I wasn't sure if it was best practice to change this value as you go along or once at the end. I can rebase to something that incrementally changes the value in the "cleaned" commits if that is preferred. Related Issues: #73494 #133895 r? jieyouxu
2025-03-22Rollup merge of #138763 - aDotInTheVoid:two-years-later, r=GuillaumeGomezMatthias Krüger-2/+2
jsondocck: Replace `jsonpath_lib` with `jsonpath-rust` The current jsonpath implementation we use isn't spec-compliant, and is buggy. See https://github.com/freestrings/jsonpath/issues/91 To solve it, it's replaced with https://github.com/besok/jsonpath-rust. This is spec-compiant, and doesn't have a really awkward bug we need to always dance around. Unfortunately, this requires rewriting almost every test, as the behaviour of `[?(```@`,``` which is *extremely* common was changed. (But the new behaviour makes way more sense, and isn't buggy with tripply nested selectors) Unblocks #110406. Makes #100515 much easier as we don't need to explain the broken JSONPath implementation Best reviewed commit-by-commit. The first does the replacement. The next two rewrite the test-suite mechanically. The last rewrites the test-suite by hand. r? ```@GuillaumeGomez```
2025-03-22fix: Handle multiple `#[repr(..)]` attrs correctlyShoyu Vanilla-71/+91
2025-03-22Speed up resolving "Generate delegate method" assist (part 2)Felicián Németh-570/+532
Make it compile by adding a `None` subtype to rest of the AssistId instantiations.
2025-03-22Speed up resolving "Generate delegate method" assist (part 1)Felicián Németh-10/+30
Fix #19322 Sometimes there are 185 "Generate delegate" assists with the same assist_id and asssist_kind. This commit introduces and additional differentiator: assist_subtype. Therefore, when the LSP client sends an assist resolve request, rust-analyzer only need to compute edits for a single assist instead of 185.
2025-03-21cleaned and organized 3 tests in `./tests/ui/issues`Spencer-4/+1
2025-03-22fix: Properly calculate the layouts of tuple ptrs whose last fields are DSTShoyu Vanilla-0/+19
2025-03-22Auto merge of #138808 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 14 commits in 6cf8267012570f63d6b86e85a2ae5627de52df9e..307cbfda3119f06600e43cd38283f4a746fe1f8b 2025-03-14 15:25:36 +0000 to 2025-03-20 20:00:39 +0000 - feat: Add custom completer for cargo &lt;TAB&gt; to complete aliases defined in config.toml (rust-lang/cargo#15319) - fix(build-dir): Renamed workspace-manifest-path-hash to workspace-path-hash (rust-lang/cargo#15334) - feat: vcs, color, and message format native completion (rust-lang/cargo#15322) - Fix `[env]` `relative` description in reference (rust-lang/cargo#15332) - chore: fix some typos (rust-lang/cargo#15329) - Cleanup for rustc-link-arg-cdylib (rust-lang/cargo#15326) - fix(toml): Report '&lt;target&gt;.edition' deprecation to users (rust-lang/cargo#15321) - test(build-std): address overly-matched snapshot (rust-lang/cargo#15325) - Added `build.build_dir` templating support (rust-lang/cargo#15236) - docs: make it clearer that `rust_version` is enforced during compile (rust-lang/cargo#15303) - feat: Add custom completer for cargo +&lt;TAB&gt; to complete toolchain name (rust-lang/cargo#15301) - chore: fix some typos (rust-lang/cargo#15316) - fix: deduplicate crate types in cargo rustc command (rust-lang/cargo#15314) - docs: mention wrong URLs as a cause of git authentication errors (rust-lang/cargo#15304) r? ghost
2025-03-21Update cargoWeihang Lo-0/+0
2025-03-21Merge pull request #19412 from Veykril/push-krktmvxmlxmtLukas Wirth-47/+46
chore: Remove some unnecessary usage of `Semantics`
2025-03-21chore: Remove some unnecessary usage of `Semantics`Lukas Wirth-47/+46
2025-03-21add test for &raw const/&raw mut is not syntax-highlighted in all filesbit-aloo-0/+61
2025-03-21change from krate to Option<krate> in syntax highlighting to incorporate ↵bit-aloo-18/+16
modules which are not part of any crate
2025-03-21Merge pull request #19409 from Veykril/push-osqtywsvmwxvLukas Wirth-35/+42
minor: Don't query the database in workspace switching
2025-03-21add syntax validation test for &impl 'abit-aloo-0/+30