about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-04-28Add bootstrap cfgLaurențiu Nicola-0/+1
2025-04-28Format codeLaurențiu Nicola-1/+3
2025-04-28Merge from rust-lang/rustLaurențiu Nicola-219/+69
2025-04-28Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-04-26Merge pull request #19692 from vishruth-thimmaiah/remove_underscore_for_used_varChayim Refael Friedman-0/+212
feat: adds an assist to remove underscores from used variables
2025-04-27feat: adds an assist to remove underscores from used variablesVishruth-Thimmaiah-0/+212
adds an assist that suggests removing any underscore prefixes from used variables.
2025-04-26Don't escape `'static`Chayim Refael Friedman-2/+10
As it is a valid lifetime without escaping. It does need to be escaped as a label, but we have no way to distinguish that.
2025-04-26Escape raw names in labels properlyChayim Refael Friedman-5/+26
2025-04-25Clarify text for add_braces assistWilfred Hughes-3/+3
"to arm expression" is hard to parse, because "arm" can be a verb. Not all Rust users may know that "arm" refers to a `match` expression either. Tweak the wording to make the sentence easier to parse, and clarify that this assist refers to `match`. Use the same wording style for the closure version too.
2025-04-25Merge pull request #19690 from ChayimFriedman2/preallocate-inputChayim Refael Friedman-3/+10
minor: Preallocate `parser::Input`
2025-04-25Preallocate `parser::Input`Chayim Refael Friedman-3/+10
2025-04-25Merge pull request #19688 from ChayimFriedman2/less-unusedLukas Wirth-173/+164
internal: More `shrink_to_fit()` and upgrade dashmap and hashbrown
2025-04-25Switch `AstIdMap` to `hashbrown::HashTable` from the raw APIChayim Refael Friedman-10/+10
It's the intended use.
2025-04-25Upgrade dashmap and hashbrownChayim Refael Friedman-136/+103
And adapt `intern` to the changes in the API.
2025-04-25minor: formatgohome001-6/+4
2025-04-25test: add test case for highlight unsafe operationsgohome001-0/+28
2025-04-25feat: highlight unsafe operationsgohome001-0/+57
2025-04-25`shrink_to_fit()` in more placesChayim Refael Friedman-27/+51
This saves 18mb on `analysis-stats .`, without regressing speed.
2025-04-25Add PGO support to installFrançois Bernier-132/+175
Enable PGO optimizations when installing rust-analyzer with the --pgo flag. This mirrors functionality already available in dist command, allowing developers to create optimized local builds. Example: cargo xtask install --server --pgo clap-rs/clap PGO code has been extracted to a dedicated module for reuse.
2025-04-24Always error when failed to parse DiscoverProjectMessageDavid Richey-13/+13
2025-04-24Merge pull request #19678 from Veykril/push-mkznvpsktnnzLukas Wirth-60/+126
Arena allocate `LifetimeRef`s
2025-04-24Merge pull request #19675 from Veykril/push-uuluymsosttrLukas Wirth-12/+29
fix: Fix type argument mismatch incorrectly triggering on inferred trait args
2025-04-24Arena allocate `LifetimeRef`sLukas Wirth-60/+126
2025-04-24Shrink `WherePredicate` by 8 bytesLukas Wirth-2/+3
2025-04-24Correctly set `infer_args = true` in more placesChayim Refael Friedman-8/+10
Previously this being incorrect wasn't a problem, it just meant we put an error type that then changed to infer type, so exactly what rustc does at the end. But now there is a diagnostic.
2025-04-24fix: Fix type argument mismatch incorrectly triggering on inferred trait argsLukas Wirth-4/+19
2025-04-24refactor: Remove `WherePredicateTypeTarget`Lukas Wirth-311/+302
2025-04-24Properly handle lifetimes when checking generic arguments lenChayim Refael Friedman-226/+858
And also, prepare for correct lowering of lifetime. We still don't handle most lifetimes correctly, but a bit more of the foundation to lifetime elision is now implemented.
2025-04-23fix: Fix incorrect diagnostic for lifetime parameter count mismatchLukas Wirth-15/+21
2025-04-23Mark `incorrect_generics_len` diagnostic as experimentalLukas Wirth-0/+1
2025-04-22Merge pull request #19647 from roife/fix-issue-19646Lukas Wirth-41/+31
fix: panics in inlay hints that produce empty text edits for closure return types
2025-04-23fix: panics in inlay hints that produce empty text edits for closure return ↵roifewu-41/+31
types
2025-04-22Merge pull request #19657 from ChayimFriedman2/better-offset-ofLukas Wirth-3/+230
feat: Better support `offset_of!()`
2025-04-22Account for `IngredientCache::get_or_create()` taking `&Zalsa` and not `&dyn ↵Chayim Refael Friedman-1/+1
Database`
2025-04-22Fix varianceChayim Refael Friedman-7/+3
This one does need fixpoint.
2025-04-22Adapt for new cycle handling changing in SalsaChayim Refael Friedman-339/+133
2025-04-22Adjust for `salsa::Id::from_u32()` being unsafeChayim Refael Friedman-183/+80
This impacts our manual `salsa::Id` wrappers. I refactored them a bit to improve safety.
2025-04-22Adjust for new Salsa not implementing `Debug` by defaultChayim Refael Friedman-6/+6
2025-04-22Depend on Salsa v0.20.0Chayim Refael Friedman-10/+11
2025-04-22Merge pull request #19479 from ChayimFriedman2/generic-mismatchLukas Wirth-405/+1243
feat: Add two new diagnostics: one for mismatch in generic arguments count, and another for mismatch in their kind
2025-04-22The new diagnostic has found a bug lurking in minicoreChayim Refael Friedman-1/+1
It's cute, isn't it?
2025-04-22Add two new diagnostics: one for mismatch in generic arguments count, and ↵Chayim Refael Friedman-404/+1242
another for mismatch in their kind Also known as E0747 and E0107. And by the way, rewrite how we lower generic arguments and deduplicate it between paths and method calls. The new version is taken almost straight from rustc. This commit also changes the binders of `generic_defaults()`, to only include the binders of the arguments up to (and not including) the current argument. This make it easier to handle it in the rewritten lowering of generic args. It's also how rustc does it.
2025-04-22Merge pull request #19622 from A4-Tacks/raw-string-suffixLukas Wirth-13/+293
Fix ide-assists raw_string suffix fail
2025-04-22Merge pull request #19662 from Veykril/push-lqqvmnonlwrxLukas Wirth-1/+1
minor: Fix outdated comment in hir-ty/generics.rs
2025-04-22minor: Fix outdated comment in hir-ty/generics.rsLukas Wirth-1/+1
2025-04-22Merge pull request #19624 from jackh726/chalk-updateLukas Wirth-173/+166
Update chalk
2025-04-22Resolve `offset_of!()` in IDEChayim Refael Friedman-3/+169
2025-04-21refactor: Fold hygiene map into bindings themselvesLukas Wirth-34/+38
`HygieneId` fits into `Binding`'s padding.
2025-04-21Merge pull request #19644 from ChayimFriedman2/const-symsLukas Wirth-479/+438
internal: Make predefined symbols `const` instead of `static`
2025-04-21Merge pull request #19604 from WtzLAS/fix-issue-19601Lukas Wirth-1/+1
Add semicolon to use