about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-02-17Rollup merge of #137173 - lnicola:sync-from-ra, r=lnicolaMatthias Krüger-2949/+9573
Subtree update of `rust-analyzer` r? `@ghost`
2025-02-17Update lockfileLaurențiu Nicola-12/+12
2025-02-17Merge pull request #19169 from lnicola/sync-from-rustLaurențiu Nicola-10/+10
minor: Sync from downstream
2025-02-17Bump rustc cratesLaurențiu Nicola-5/+5
2025-02-17Merge pull request #19167 from ChayimFriedman2/fix-ref-patLukas Wirth-17/+64
fix: Fix detection of ref patterns for path patterns
2025-02-17Merge from rust-lang/rustLaurențiu Nicola-4/+4
2025-02-17Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-02-17Auto merge of #137164 - matthiaskrgr:rollup-dj5826k, r=matthiaskrgrbors-5/+19
Rollup of 7 pull requests Successful merges: - #137095 (Replace some u64 hashes with Hash64) - #137100 (HIR analysis: Remove unnecessary abstraction over list of clauses) - #137105 (Restrict DerefPure for Cow<T> impl to T = impl Clone, [impl Clone], str.) - #137120 (Enable `relative-path-include-bytes-132203` rustdoc-ui test on Windows) - #137125 (Re-add missing empty lines in the releases notes) - #137145 (use add-core-stubs / minicore for a few more tests) - #137149 (Remove SSE ABI from i586-pc-windows-msvc) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-17Fix detection of ref patterns for path patternsChayim Refael Friedman-17/+64
I was wrong on #19127, I thought hir-def resolver is enough for them, but it turns out not because of paths like `<Enum>::Variant` and `Type::AssocThatIsEnum::Variant`.
2025-02-17Merge pull request #19158 from PoignardAzur/expaned_pub_glob_importsLukas Wirth-92/+297
Implement expand_glob_reexport assist
2025-02-17Merge pull request #19122 from Austaras/masterLukas Wirth-20/+37
pass struct fields to chalk
2025-02-17Merge pull request #19127 from ChayimFriedman2/different-generic-argsLukas Wirth-1144/+1222
feat: Refactor path lowering and serve a new path diagnostic
2025-02-17Fix sorting of runnablesChayim Refael Friedman-11/+4
There were two mistakes: first, tests were sorted before test modules, and second, we re-sorted based on the name only, which cancelled the sort based on the kind.
2025-02-17Rename `pattern_complexity` attr as `pattern_complexity_limit`.Nicholas Nethercote-2/+2
For consistency with `recursion_limit`, `move_size_limit`, and `type_length_limit`.
2025-02-17Add `pattern_complexity_limit` to `Limits`.Nicholas Nethercote-1/+1
It's similar to the other limits, e.g. obtained via `get_limit`. So it makes sense to handle it consistently with the other limits. We now use `Limit`/`usize` in most places instead of `Option<usize>`, so we use `Limit::new(usize::MAX)`/`usize::MAX` to emulate how `None` used to work. The commit also adds `Limit::unlimited`.
2025-02-16Move hashes from rustc_data_structure to rustc_hashes so they can be shared ↵Ben Kimock-5/+19
with rust-analyzer
2025-02-16Refactor path loweringChayim Refael Friedman-1132/+1220
And add a new diagnostic for non-`Fn` parenthesized generic args. Path lowering started to look like a mess, with each function carrying additional parameters for the diagnostic callback (since paths can occur both in type and in expression/pattern position, and their diagnostic handling is different) and the segment index, for the diagnostics report. So I refactored it from stateless functions on `TyLoweringContext` into stateful struct, `PathLoweringContext`, that tracks the process of lowering a path from resolution til assoc types selection.
2025-02-16Merge pull request #19137 from asuto15/highlight-extern-crateLukas Wirth-0/+19
fix: highlight `extern crate` in doc comments
2025-02-16Merge pull request #19155 from ShoyuVanilla/migrate-missing-match-armsLukas Wirth-113/+72
internal: Remove mutable syntax tree usages from `add_missing_match_arms` assist
2025-02-16fix: Stabilize sort order of `related_tests`Lukas Wirth-27/+35
2025-02-16Merge pull request #19161 from Veykril/push-prmuyxlnxzxoLukas Wirth-33/+45
fix: Improve sort order of runnables
2025-02-16fix: Stabilize sort order of runnablesLukas Wirth-33/+45
2025-02-16Improve error recovery when method-calling an assoc functionLukas Wirth-71/+112
2025-02-16Set `RUSTUP_TOOLCHAIN` when loading sysroot workspaceLukas Wirth-2/+6
2025-02-15Re-generate doctestsOlivier FAURE-0/+23
2025-02-16Temporarily ignore tests with commentsShoyu Vanilla-0/+6
2025-02-15Implement expand_glob_reexport assistOlivier FAURE-19/+208
2025-02-15Factor out business logic of expand_glob_importOlivier FAURE-82/+75
2025-02-15fix: remove unnecessary conversionasuto15-1/+1
2025-02-15Delete library modifier to highlighting for extern crateasuto15-24/+7
2025-02-13add cargo's git checkouts to the list of paths to mark as read-only in vscodeJacob Lifshay-0/+1
2025-02-14internal: Remove mutable syntax tree usages from `add_missing_match_arms` assistShoyu Vanilla-113/+66
2025-02-13Merge pull request #19141 from Wilfred/split_editorsLukas Wirth-618/+635
manual: Separate out installation and configuration pages
2025-02-12Apply cfg.setTest to json projectsDavid Richey-44/+50
2025-02-13Delete useless commaasuto15-1/+1
2025-02-13Add modifiers to highlighting for extern crateasuto15-2/+31
2025-02-12manual: Separate out installation and configuration pagesWilfred Hughes-618/+635
Organise the installation content into: * VS Code instructions * Binary installation * Editor configuration
2025-02-12Merge pull request #19142 from Veykril/push-upwqztrsuwpzLukas Wirth-202/+335
Spawn toolchain querying processes in parallel
2025-02-12Rename sysroot src/lib related thingsLukas Wirth-104/+121
2025-02-12Merge pull request #19148 from Veykril/push-ptnykrwnwwluLukas Wirth-79/+152
Improve error recovery when method-calling a field
2025-02-12Improve error recovery when method-calling a fieldLukas Wirth-79/+152
2025-02-12Spawn toolchain querying processes in parallelLukas Wirth-112/+228
2025-02-12Merge pull request #18928 from roife/fix-18918Lukas Wirth-1/+5295
fix: handle character boundary in search mode
2025-02-12Merge pull request #19109 from Veykril/push-nzpuuqommpnqLukas Wirth-31/+97
fix: Do not show safety hints for extern items lacking semantics
2025-02-12fix: handle character boundary in search moderoife-1/+5295
2025-02-12fix: Do not show safety hints for extern items lacking semanticsLukas Wirth-31/+97
2025-02-12Merge pull request #19111 from ShoyuVanilla/issue-19021Lukas Wirth-9/+89
fix: Apply adjustments to proper expr when invoking `CoerceMany`
2025-02-12Merge pull request #19110 from eagr/panic-contextLukas Wirth-22/+18
Simplify panic_context
2025-02-12Merge pull request #19125 from ChayimFriedman2/cfg-attr-fastLukas Wirth-24/+96
fix: Censor cfg_attr for attribute macros
2025-02-12Merge pull request #18995 from alibektas/12210Lukas Wirth-117/+187
fix: Lower range pattern bounds to expressions