about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-06-12Fix comparison of proc macrosChayim Refael Friedman-6/+52
Comparing the TypeId is not enough, they also contain data.
2025-06-12Remove `AttrOwner`Lukas Wirth-68/+59
2025-06-12Ditch the unnecessary smallvecLukas Wirth-12/+15
2025-06-12Coalesce item tree data mapsLukas Wirth-181/+138
2025-06-12`AttrOwner` needs no `ModItem`Lukas Wirth-47/+36
2025-06-12Remove `FileItemTreeId`Lukas Wirth-181/+116
2025-06-12Remove `ItemTreeId`Lukas Wirth-86/+52
2025-06-12Merge pull request #19981 from Veykril/push-tzzunsrqqunvLukas Wirth-5/+6
fix: Do not force descend into derives for goto IDE features
2025-06-12fix: Do not force descend into derives for goto IDE featuresLukas Wirth-5/+6
Doing so can cause us to duplicate navigation targets for the same ranges which breaks convenience features of some editors where go to def can trigger find all references
2025-06-12`ItemTree`'s `ItemVisibilities` has no identity, so deduplicateLukas Wirth-38/+39
2025-06-12Merge pull request #19837 from ChayimFriedman2/stable-astidLukas Wirth-1945/+2256
Provide better incrementality when items are changed
2025-06-12LRU ast id mapChayim Refael Friedman-0/+1
We can do that and it's pretty heavy.
2025-06-12Ignore ast id hashes in typos checkChayim Refael Friedman-0/+1
2025-06-12Remove most of the item treeChayim Refael Friedman-443/+52
I'm joking, but now that the def map is the only thing that uses the item tree, we can remove a lot of things from it that aren't needed for the def map.
2025-06-12Avoid referring to the item tree except in the def mapChayim Refael Friedman-955/+981
Item tree IDs are very unstable (adding an item of a kind invalidates all following items of the same kind). Instead use ast ids, which, since the previous commit, are pretty stable.
2025-06-12Use stable AST IDsChayim Refael Friedman-556/+1230
Instead of simple numbering, we hash important bits, like the name of the item. This will allow for much better incrementality, e.g. when you add an item. Currently, this invalidates the IDs of all following items, which invalidates pretty much everything.
2025-06-12Merge pull request #19942 from ChayimFriedman2/fauxLukas Wirth-28/+26
fix: Fix completion with some attribute macros
2025-06-11chore(deps-dev): bump brace-expansion in /editors/codedependabot[bot]-15/+15
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.12. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.12 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11hir-ty: test (the absence of) incremental trait solvingDavid Barsky-1/+87
2025-06-11Merge pull request #19973 from Veykril/push-ppltxvqvqmkkLukas Wirth-3/+9
fix: Hide dyn inlay hints for incomplete `impl`s
2025-06-11fix: Hide dyn inlay hints for incomplete `impl`sLukas Wirth-3/+9
2025-06-11Fix proc macro server handling of strings with minusesChayim Refael Friedman-31/+26
It used to decompose them thinking they were numbers.
2025-06-10Merge pull request #19964 from Wilfred/fix_typosChayim Refael Friedman-2/+2
[minor] Fix typos
2025-06-10[minor] Fix typosWilfred Hughes-2/+2
2025-06-10Merge pull request #19963 from ChayimFriedman2/unsized-impl-itemsLukas Wirth-3/+64
fix: Do not error at impls for unsized types that do not include `where Self: Sized` items
2025-06-10Do not error at impls for unsized types that do not include `where Self: ↵Chayim Refael Friedman-3/+64
Sized` items
2025-06-09Merge pull request #19930 from regexident/dyn-semantics-take-twoDavid Barsky-2/+18
Make `Semantics<'db, DB>` support `Semantics<'db, dyn HirDatabase>`, take two
2025-06-09Merge from rust-lang/rustLaurențiu Nicola-14/+0
2025-06-09Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-06-09Stabilize the "JSON is not Rust" diagnosticChayim Refael Friedman-0/+1
2025-06-08Add the quickfix for increasing visibility of a private field to the ↵Chayim Refael Friedman-32/+125
private-field diagnostic (previously it was only on no-such-field) The difference between the diagnostics is that no-such-field is for record struct construction, while private-field is for dot syntax. I tried to unify them, but there is a bit of uniqueness in each. This is possible but maybe not worth it. Also, fix the quickfix when there is already a visibility to the field (replace it instead of appending to it).
2025-06-08Correctly handle attr macros placed in cfg_attr in speculative expansionChayim Refael Friedman-20/+26
2025-06-08Remove the optimization of builtin attrs in `is_inside_macro_call()`Chayim Refael Friedman-8/+0
`#[cfg_attr]` is a builtin attr, but it may still contain a macro.
2025-06-06In "Fill match arms", allow users to prefer `Self` to the enum name when ↵Chayim Refael Friedman-29/+227
possible But default to not to. I chose to have a more generic config name because maybe other assists could also use the same approach.
2025-06-06Make `Semantics<'db, dyn HirDatabase>` actually usableVincent Esche-2/+18
2025-06-06Merge pull request #19908 from ↵Lukas Wirth-25/+190
rmehri01/rmehri01/diagnostic_attribute_completions feat: implement attribute completions for diagnostics module
2025-06-06Merge pull request #19937 from Veykril/push-rvnylnlnxxyrLukas Wirth-10/+28
fix: Record macro calls for fields in `ChildBySource` impls
2025-06-06Merge pull request #19935 from ChayimFriedman2/exp-diag-show-quickfixLukas Wirth-2/+12
fix: Always include quickfixes for diagnostics, even when diagnostics are disabled
2025-06-06fix: Record macro calls for fields in `ChildBySource` implsLukas Wirth-10/+28
2025-06-06Stabilize unlinked file diagnosticChayim Refael Friedman-0/+1
2025-06-06Always include quickfixes for diagnostics, even when diagnostics are disabledChayim Refael Friedman-2/+12
2025-06-05Merge pull request #19933 from Veykril/push-uyxorpyvnzslLukas Wirth-10/+134
Better parser recovery for macro calls in type bound position
2025-06-05Better parser recovery for macro calls in type bound positionLukas Wirth-10/+134
2025-06-05fix: Record macro calls in signatures in `ChildBySource` implsLukas Wirth-19/+77
2025-06-05Stabilize `const_eq_ignore_ascii_case`Paolo Barbolini-14/+0
2025-06-05Merge pull request #19928 from Veykril/push-kznpuqllrvvqLukas Wirth-297/+160
Deduplicate code in proc-macro-srv
2025-06-05Deduplicate code in proc-macro-srvLukas Wirth-297/+160
2025-06-05feat: ide-assist, generate single field struct FromA4-Tacks-6/+1043
2025-06-04add qualifiers to attribute completionsRyan Mehri-14/+30
2025-06-04match on segments of path and some small cleanupRyan Mehri-23/+14