about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2024-12-16Use a record struct instead of a tuple for each namespace in `PerNs`Chayim Refael Friedman-133/+162
The reason I did this is because I plan to add another field to this struct (indicating whether the item was cfg'ed out), but it seems worthy even separately and removes a bunch of one-letter variable names and tuple-indexing. It is also easy to separate from future changes, so it will be easier to review this way.
2024-12-16Fix a panic with a diagnostics fix when a keyword is used as a fieldChayim Refael Friedman-1/+18
I found it easiest to fix in the quickfix code, and not deeper (e.g. body lowering).
2024-12-16fix: Fix path qualified auto-importing completions not working with re-exportsLukas Wirth-134/+221
Prior to this commit we used to generate import paths, then zipped them with the existing qualifier to check if they agree on the path to import. This is brittle when re-exports come into play causing items to have multiple applicable paths that refer to them. This commit instead rewrites this logic by generating the import path for the qualifier, verifying that the rest of the qualifier resolves and then doing a final lookup on that resolution result for the final segment instead.
2024-12-16Merge pull request #18698 from Veykril/push-vpqwrwxptsqlLukas Wirth-4/+12
internal: Don't serialize empty fields in completions and resolve payloads
2024-12-16Merge pull request #18690 from Giga-Bowser/extract-variable-stringLukas Wirth-15/+168
feat: Use string literal contents as a name when extracting into variable
2024-12-16internal: Don't serialize empty fields in completions and resolve payloadsLukas Wirth-4/+12
2024-12-16Merge pull request #18695 from roife/improve-tuple-destructionLukas Wirth-74/+74
minor: improve name suggestion for destructure_tuple_binding
2024-12-16Merge pull request #18696 from ChayimFriedman2/syn-synLukas Wirth-63/+110
feat: Report unresolved idents for implicit captures in `format_args!()`
2024-12-16Merge pull request #18697 from Veykril/push-qtmmtvpyrntrLukas Wirth-30/+9
internal: Simplify ratoml testdir usage
2024-12-16internal: Simplify ratoml testdir usageLukas Wirth-30/+9
2024-12-16Report unresolved idents for implicit captures in `format_args!()`Chayim Refael Friedman-63/+110
And also a bit of cleanup by storing the capture's span with the open quote included.
2024-12-16refactor: simplify `edit_tuple_usages` in destructure_tuple_bindingroife-46/+30
2024-12-15Merge pull request #18693 from Veykril/push-wzoomkkmuolmLaurențiu Nicola-6/+3
fix: Fix proc-macro dylib names on windows
2024-12-15fix: Fix proc-macro dylib names on windowsLukas Wirth-6/+3
2024-12-15internal: Show mir eval errors on hover with debug env var setLukas Wirth-97/+113
2024-12-14feat: Use string literal contents as a name when extracting into variableGiga Bowser-15/+168
2024-12-13fix: Revert changes to client capabilities in `bac0ed5`Giga Bowser-1/+1
2024-12-13feat: improve name generation in destructure_tuple_bindingroife-33/+49
2024-12-13Bump typosLaurențiu Nicola-11/+16
2024-12-13Merge pull request #18678 from regexident/fix-typosLaurențiu Nicola-6/+6
minor: Fix a few typos
2024-12-13Fix a few typosVincent Esche-6/+6
2024-12-13Merge pull request #18674 from Veykril/push-lrxotqknvxvrLukas Wirth-37/+76
Show expansion errors in expand_macro feature
2024-12-13Merge pull request #18672 from Veykril/push-lurnqpqtzvzqLukas Wirth-41/+15
internal: Do not require a special env var to be set for the proc-macro-srv
2024-12-13Show expansion errors in expand_macro featureLukas Wirth-37/+76
2024-12-13Do not require a special env var to be set for the proc-macro-srvLukas Wirth-41/+15
2024-12-12Merge pull request #18677 from Veykril/push-uumpxklsqpzkLukas Wirth-1/+4
internal: Implement `naked_asm!` builtin
2024-12-12internal: Implement `naked_asm!` builtinLukas Wirth-1/+4
2024-12-12Merge pull request #18675 from ShoyuVanilla/issue-18664Lukas Wirth-2/+50
fix: Panic when displaying generic params with defaults, again
2024-12-13fix: Panic when displaying generic params with defaults, againShoyu Vanilla-2/+50
2024-12-12Fix typo in error message for invalid castingPhilipp Hofer-1/+1
Corrected the spelling of "defererence" to "dereference" in the error message that informs users about invalid casting requirements.
2024-12-12Merge pull request #18670 from Veykril/push-ylomnylswnxmLukas Wirth-48/+30
internal: Drop proc-macro server support for ~1.66.0 and older toolchains
2024-12-12internal: Drop proc-macro server support for ~1.66.0 and older toolchainsLukas Wirth-48/+30
2024-12-12Merge pull request #18652 from Giga-Bowser/extract-constantLukas Wirth-306/+1634
feat: Add an assist to extract an expression into a constant
2024-12-12Merge pull request #18669 from Veykril/push-qqkuxtvsmsutLukas Wirth-32/+31
internal: Only parse the object file once in proc-macro-srv
2024-12-12Fix clippy lints in proc-macro-srvLukas Wirth-11/+12
2024-12-12Only parse the object file onceLukas Wirth-21/+19
2024-12-12Merge pull request #18668 from Veykril/push-tpkmsyllunqvLukas Wirth-75/+75
fix: Fix sourceroot construction for virtual manifests
2024-12-12Merge pull request #18660 from Veykril/push-snumrtvzwqvwLukas Wirth-69/+72
fix: copied proc-macros not being cleaned up on exit
2024-12-12fix: Fix sourceroot construction for virtual manifestsLukas Wirth-75/+75
2024-12-12Generate implementation with items even if snippet text edit is disabled1hakusai1-2/+32
2024-12-11Merge pull request #18466 from ChayimFriedman2/proper-lint-severityLaurențiu Nicola-1400/+6592
Properly handle different defaults for severity of lints
2024-12-11Fix publish workflow link in manualSam Estep-1/+1
2024-12-11minor: Group `extract_function` with other extraction assistsGiga Bowser-8/+23
2024-12-11feat: Add an assist to extract an expression into a staticGiga Bowser-120/+686
2024-12-11Properly handle different defaults for severity of lintsChayim Refael Friedman-1400/+6592
Previously all lints were assumed to be `#[warn]`, and we had a hand-coded list of `#[allow]` exceptions. Now the severity is autogenerated from rustdoc output. Also support lints that change status between editions, and the `warnings` lint group.
2024-12-11minor: Add `item_static` constructor to `SyntaxFactory`Giga Bowser-1/+63
2024-12-11feat: Add an assist to extract an expression into a constantGiga Bowser-189/+847
2024-12-11internal: Move `is_body_const` to `ide_assists::utils`Giga Bowser-44/+44
2024-12-11minor: Add `item_const` constructor to `SyntaxFactory`Giga Bowser-0/+27
2024-12-11Merge pull request #18663 from Veykril/push-syoklzkntyknLukas Wirth-0/+4
fix: Swallow rustfmt parsing panics