summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates
AgeCommit message (Collapse)AuthorLines
2025-02-10Extend the renaming to coerce_unsafe_ptrBastian Kersting-1/+1
2025-02-10Merge from rust-lang/rustLaurențiu Nicola-2/+4
2025-02-07Merge pull request #19104 from jnyfah/some-branchLukas Wirth-1/+43
option to disable inlay Type hints for Closure parameters
2025-02-07minor changesjnyfah-1/+1
2025-02-07Merge pull request #19106 from ShoyuVanilla/issue-18682Lukas Wirth-0/+36
fix: Resolve projection types before checking casts
2025-02-07fix: Resolve projection types before checking castsShoyu Vanilla-0/+36
2025-02-06fix: Don't emit empty scip occurrence for builtinsDavid Richey-34/+31
2025-02-06collapsing if statementjnyfah-4/+2
2025-02-06closure parameter inlay hintsjnyfah-1/+45
2025-02-05Merge pull request #19099 from Veykril/push-qxylslwltsqyLukas Wirth-22/+29
Use interior mutability for loaded `ProcMacrorv::expanders`
2025-02-05Use interior mutability for loaded `ProcMacrorv::expanders`Lukas Wirth-22/+29
2025-02-05Merge pull request #18912 from vishruth-thimmaiah/fix_named_struct_assistLukas Wirth-1/+101
fix: upmap ranges in convert_tuple_struct_to_named_struct assist
2025-02-05Merge pull request #19094 from ChayimFriedman2/use-bodyLaurențiu Nicola-3/+43
fix: Fix IDE resolution of `use` inside a body
2025-02-04Merge pull request #19095 from ChayimFriedman2/fixme-adt_const_paramsChayim Refael Friedman-0/+1
minor: Add a FIXME for feature(adt_const_params)
2025-02-04Add a FIXME for feature(adt_const_params)Chayim Refael Friedman-0/+1
2025-02-04Fix a failing testChayim Refael Friedman-2/+20
The reason this test passed previously is not because it was working as intended, but because prior to the previous commit we did not resolve the `use` at all! Now, `use self as _` is invalid code anyway (it prints E0429), and because we fallback to the value namespace if we can't resolve in the type namespace (which is a reasonable behavior), this test now actually fails. I don't think we want to change the fallback, so I removed `use self as _` and instead added a new test, where the value can be resolved in the type namespace.
2025-02-04Fix IDE resolution of `use` inside a bodyChayim Refael Friedman-1/+23
We stopped the expression search too early because `use` is an item.
2025-02-04Merge pull request #19093 from Veykril/push-lrvoookylnxpLukas Wirth-10/+17
Prevent panics from tearing down worker threads
2025-02-04Prevent panics from tearing down worker threadsLukas Wirth-10/+17
2025-02-04Merge pull request #19084 from Veykril/push-muworpzpzqupLukas Wirth-66/+126
Split cache priming into distinct phases
2025-02-04Expose symbol of `CrateName`Lukas Wirth-34/+33
2025-02-03Merge pull request #19066 from alibektas/slice_pattern_type_inferenceLukas Wirth-31/+183
fix: try to infer array type from slice pattern
2025-02-03Merge pull request #19086 from Veykril/push-ponvylutpnwwLukas Wirth-6/+86
fix: Fix some mir eval/lowerings
2025-02-03Fix some mir eval/loweringsLukas Wirth-6/+86
2025-02-03Merge pull request #19085 from Veykril/push-sknwykqmlottLukas Wirth-6/+25
Do not use make use of `InferenceResult::has_errors` flag for mir building
2025-02-03Do not use make use of `InferenceResult::has_errors` flag for mir buildingLukas Wirth-6/+25
It generaly does not work as expected right now as we fallback type parameters to errors
2025-02-03Revert tests::patterns::infer_patternAli Bektas-37/+35
And apply requested changes
2025-02-03Merge pull request #19062 from darichey/scip-fix-module-namesLukas Wirth-100/+133
Fix scip indexing of module names
2025-02-03Split cache priming into distinct phasesLukas Wirth-34/+95
2025-02-02More rustfmt hang investigationsLukas Wirth-14/+18
2025-01-31Insert null checks for pointer dereferences when debug assertions are enabledBastian Kersting-0/+2
Similar to how the alignment is already checked, this adds a check for null pointer dereferences in debug mode. It is implemented similarly to the alignment check as a MirPass. This is related to a 2025H1 project goal for better UB checks in debug mode: https://github.com/rust-lang/rust-project-goals/pull/177.
2025-01-30Merge pull request #19072 from cessen/concat_uniquelyLaurențiu Nicola-25/+51
Fix #19071: ensure `completion_item_hash` serializes items uniquely
2025-01-29Use `to_ne_bytes` instead of `to_le_bytes`Nathan Vegdahl-9/+9
2025-01-29Fix typoNathan Vegdahl-2/+2
2025-01-29Fix #19071: ensure `completion_item_hash` serializes items uniquelyNathan Vegdahl-24/+50
Previously it may have been possible for different completion items to produce colliding hashes, not because of the hash but because of how the items were serialized into byte streams for hashing. See #19071 for details. The chances of that happening were low, if it was actually possible at all. Nevertheless, this commit ensures that it definitely can't happen. This commit uses a handful of techniques used to fix this, but they all boil down to "ensure this could be re-parsed". If it's possible to parse to recreate the original item, then by construction there is no chance of two different items getting serialized to identical byte streams.
2025-01-29Merge pull request #19070 from Veykril/push-wpqzmznymtrnLukas Wirth-71/+148
Remove mutable syntax tree shenanigans from adjustment hints
2025-01-29Remove mutable syntax tree shenanigans from adjustment hintsLukas Wirth-71/+148
2025-01-29Update TentHash to version 1.0Nathan Vegdahl-4/+4
The TentHash spec was frozen Jan 1st 2025, and release 1.0 of the Rust crate is a minor cleanup as a follow-up to that, representing a commitment to API stability as well. The hash output remains the same as version 0.4, which rust-analyzer was previously using. The only API change was a struct rename.
2025-01-29Auto merge of #136117 - lnicola:sync-from-ra, r=lnicolabors-1293/+2031
Subtree update of `rust-analyzer` r? `@ghost`
2025-01-29call infer_pats from infer::expr with contextAli Bektas-5/+4
2025-01-29Equip infer_pat_* with declaration originAli Bektas-26/+101
2025-01-29add test, bless testsAli Bektas-3/+22
2025-01-29try to infer array type from slice patternAli Bektas-1/+62
rust-analyzer equivalent of rust-lang/rust#2827aa97
2025-01-28parse_format optimize import useMarijn Schouten-2/+2
2025-01-28Merge pull request #19063 from ↵David Barsky-625/+78
davidbarsky/davidbarsky/backout-struct-default-fields internal: backout `hir-*` changes from #19001
2025-01-28Update lsif_contains_generated_constantDavid Richey-76/+80
2025-01-28feat: Implement `default-field-values` only in parserShoyu Vanilla-16/+280
2025-01-28Merge pull request #19015 from Wilfred/mdbookLukas Wirth-314/+251
manual: Convert to mdbook
2025-01-28Fix scip symbols for implicit modulesDavid Richey-13/+30
2025-01-28Merge pull request #19056 from Giga-Bowser/fix-syntax-tree-crlfLukas Wirth-34/+65
fix: Properly handle CRLF line endings in the syntax tree view