about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide
AgeCommit message (Collapse)AuthorLines
2025-08-02When renaming a parameter to `self`, change callers to use method call syntaxChayim Refael Friedman-3/+160
2025-07-31`cargo clippy --fix`Lukas Wirth-352/+335
2025-07-29Merge pull request #20337 from ChayimFriedman2/double-inlay-hintsLukas Wirth-0/+30
fix: When displaying a projection into a type parameter that has bounds as `impl Trait`, collect only the bounds of this projection
2025-07-29When displaying a projection into a type parameter that has bounds as `impl ↵Chayim Refael Friedman-0/+30
Trait`, collect only the bounds of this projection It used to collect the bounds of them all.
2025-07-29fix: Do not require all rename definitions to be renameableLukas Wirth-7/+2
2025-07-27minor: fix typoYoung-Flash-1/+1
2025-07-26test: add test case for fold doc comment for multiline param list fnYoung-Flash-0/+17
2025-07-26fix fold doc comment for multiline param list fnYoung-Flash-4/+6
2025-07-23Merge pull request #20285 from A4-Tacks/fix-rename-selfChayim Refael Friedman-31/+44
Change rename self to parameter use `Self` type
2025-07-23Remove rename_self_outside_of_methodsA4-Tacks-8/+2
2025-07-23Change rename self to parameter use `Self` typeA4-Tacks-29/+48
And add `&self` lifetime support Example === Rename to `this` ```rust struct Foo<T>(T); impl Foo<i32> { fn foo(&'static self$0) {} } ``` Old: ```rust struct Foo<T>(T); impl Foo<i32> { fn foo(this: &Foo) {} } ``` Fixes: ```rust struct Foo<T>(T); impl Foo<i32> { fn foo(this: &'static Self) {} } ```
2025-07-22Parse `for<'a> [const]`Chayim Refael Friedman-8/+10
And also refactor parsing of HRTB.
2025-07-20Fix search of raw labels and lifetimesChayim Refael Friedman-0/+38
It used to search for `'foo` which won't find `'r#foo`, now we search for `foo` instead.
2025-07-19minor: remove unused varYoung-Flash-3/+1
2025-07-15Merge from rust-lang/rustLaurențiu Nicola-25/+25
2025-07-11Merge pull request #20232 from ShoyuVanilla/issue-20225Shoyu Vanilla (Flint)-0/+38
fix: Normalize projection types before calculating memory maps
2025-07-11Merge pull request #20219 from ChayimFriedman2/expr-store-memChayim Refael Friedman-1/+1
perf: Put the expression stuff in the expression store behind an `Option<Box>`
2025-07-11fix: Normalize projection types before calculating memory mapsShoyu Vanilla-0/+38
2025-07-10Merge pull request #20054 from Young-Flash/folding_allShoyu Vanilla (Flint)-2/+50
feat: support folding multiline arg list & fn body in one folding range
2025-07-10Merge pull request #20212 from ChayimFriedman2/dyn-hintShoyu Vanilla (Flint)-5/+31
fix: Fixes for `dyn` inlay hint
2025-07-10Put the expression stuff in the expression store behind an `Option<Box>`Chayim Refael Friedman-1/+1
And leave only the type stuff without it. This is because most expression stores don't have anything but types (e.g. generics, fields, signatures) so this saves a lot of memory. This saves 58mb on `analysis-stats .`.
2025-07-09Put `dyn` inlay hints in their correct place in presence of parenthesesChayim Refael Friedman-3/+14
2025-07-09Don't show `dyn` hint in a HRTB boundChayim Refael Friedman-2/+17
2025-07-07Rollup merge of #143340 - nabijaczleweli:awhile, r=mati865Matthias Krüger-25/+25
awhile -> a while where appropriate
2025-07-07Fix a case where the link type was `None`Chayim Refael Friedman-3/+30
Which caused a panic.
2025-07-04Merge pull request #20031 from jnyfah/some-branchLukas Wirth-35/+75
Fix: Resolve HIR display length issues and improve adjustment tooltips
2025-07-03Merge pull request #20120 from Hmikihiro/match_bind_not_typeChayim Refael Friedman-0/+72
fix: resolve item in match bind
2025-07-03fix: resolve item in match bindHayashi Mikihiro-0/+72
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-03fix: Improve diagnostic ranges for `macro_calls!`Lukas Wirth-14/+14
We used to point to the entire macro call including its token tree if we couldn't upmap the diagnostic to the input This generally makes things very noisy as the entire macro call will turn red on errors. Instead, we now macro the path and `!` (bang) token as the error source range which is a lot nicer on the eyes.
2025-07-03Bump salsaLukas Wirth-1/+1
2025-07-03Remove keyword prefixes (`macro@` or `macro `) from links in the docs only ↵Chayim Refael Friedman-6/+52
if the link target is inferred That is, do it for `[macro foo]`, but not for `[macro foo](macro foo)`.
2025-07-02awhile -> a while where appropriateнаб-25/+25
2025-06-30test: add test case for func with multiline param listYoung-Flash-2/+19
2025-06-30internal: add `FoldKind::Function`Young-Flash-12/+16
2025-06-30feat: support folding multiline arg list & fn body in one folding rangeYoung-Flash-1/+28
2025-06-26Merge pull request #20100 from ShoyuVanilla/ignore-sized-hierarchyChayim Refael Friedman-1/+1
Backport new sized-hierarchy trait bounds in old ways
2025-06-26Backport new sized-hierarchy trait bounds in old waysShoyu Vanilla-1/+1
2025-06-26refactor: enhance highlighting for control flow kws in macrosroifewu-33/+45
2025-06-26refactor: simplify functions related to branch_exit_points in highlight_relatedroifewu-72/+74
2025-06-26refactor: rename `branches` to `branch_exit_points` in highlight_relatedroifewu-7/+7
2025-06-26refactor: improve macro handling in navigation for control-flow kwsroifewu-13/+47
2025-06-26feat: highlighting of related return values while the cursor is on any ↵roifewu-9/+755
`match`, `if`, or match arm arrow (`=>`)
2025-06-24Merge pull request #20012 from lnicola/bump-literal-escaperLukas Wirth-4/+2
Update to literal-escaper 0.0.4
2025-06-24Merge pull request #20080 from Veykril/push-vnrwqppplykmLukas Wirth-38/+56
Cleanup `folding_ranges` and support more things
2025-06-24Cleanup `folding_ranges` and support more thingsLukas Wirth-38/+56
2025-06-24Merge pull request #20036 from Veykril/push-yquvoyrxkksxLukas Wirth-4/+4
Do not default to 'static for trait object lifetimes
2025-06-24Do not default to 'static for trait object lifetimesLukas Wirth-4/+4
We lack trait object default lifetime elision, so `'static` can be wrong at times, confusing the user
2025-06-23Don't run doctestsChayim Refael Friedman-0/+1
2025-06-21formatjnyfah-1/+1
2025-06-21revert changesjnyfah-95/+10