about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide
AgeCommit message (Collapse)AuthorLines
2025-04-05 the rustdoc file prefix for constants is "constant" not "const"Jonathan Chan Kwan Yin-1/+1
2025-04-04Merge pull request #19522 from ↵Lukas Wirth-1/+3
davidbarsky/davidbarsky/fix-panic-in-view-crate-graph internal: fix panic in `view_crate_graph`
2025-04-04Merge pull request #19515 from jrmuizel/multiple-definitionsLukas Wirth-7/+102
fix: don't drop references with more than one definition.
2025-04-04internal: fix panic in `view_crate_graph`David Barsky-1/+3
2025-04-04fix: don't drop references with more than one definition.Jeff Muizelaar-7/+102
Implicit field references during struct initialization were being dropped because get_definition was returning None because there were multiple definitions. This adds a new helper, `get_defintions`, that supports returning more than one definition for a given token and hooks it up. Fixes #19393
2025-04-04prefer default over newBenjaminBrienen-1/+1
2025-04-03fix(ide-assists): remove `AssistKind::None`Prajwal S N-1/+1
This was being used by a single assist, which qualifies under the "refactor" kind. The variant has been removed, and all usages updated accordingly. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-01Fix a bug in MBE expansion that arose from incorrect fixing of an older bug ↵Chayim Refael Friedman-0/+22
in MBE Specifically, #18744 was the PR that was supposed to fix the old bug, but it fixed it incorrectly (and didn't add a test!) The underlying reason was that we marked metavariables in expansions as joint if they were joint in the macro call, which is incorrect. This wrong fix causes other bug, #19497, which this PR fixes by removing the old (incorrect) fix.
2025-04-01chore: Remove unnecessary `Arc` clonesLukas Wirth-22/+0
2025-03-31fix: Fix new nightly lintsLukas Wirth-6/+5
2025-03-31fix: Cleanup param name inlay hint filteringLukas Wirth-108/+163
2025-03-29fix: Fix, clarify and require a value for `proc_macro_cwd` of `CrateData`Lukas Wirth-1/+7
2025-03-25Tidy up drop glue notificationConrad Irwin-421/+107
This combines the memory layout and drop information on one line, and makes the wording more succinct. Closes #19410
2025-03-24Merge pull request #19435 from Veykril/push-owstqqlrtskoLukas Wirth-5/+6
fix: Fix closure return inlayhints using macro ranges
2025-03-24Merge pull request #19430 from Veykril/push-wknpypxuyrszLukas Wirth-3/+3
chore: Bump dependencies
2025-03-24fix: Fix closure return inlayhints using macro rangesLukas Wirth-5/+6
2025-03-23Merge pull request #19400 from Shourya742/2025-03-20-fix-syntax-highlightingLukas Wirth-18/+77
Fix missing syntax highlighting for `&raw const` / `&raw mut` in all files.
2025-03-23chore: Bump dependenciesLukas Wirth-3/+3
2025-03-22Merge pull request #19419 from ShoyuVanilla/issue-15132Lukas Wirth-7/+73
Render layout and other extra information on hovering `Self`
2025-03-22Render layout and other extra informations on hovering `Self`Shoyu Vanilla-7/+73
2025-03-22Speed up resolving "Generate delegate method" assist (part 2)Felicián Németh-2/+6
Make it compile by adding a `None` subtype to rest of the AssistId instantiations.
2025-03-21add test for &raw const/&raw mut is not syntax-highlighted in all filesbit-aloo-0/+61
2025-03-21change from krate to Option<krate> in syntax highlighting to incorporate ↵bit-aloo-18/+16
modules which are not part of any crate
2025-03-21Merge pull request #19348 from jnyfah/some-branchLukas Wirth-6/+34
Add text edit support for return type hints on non-block body closures
2025-03-21refactor: Reduce codegen burden for `SyntaxKind`Lukas Wirth-1/+1
2025-03-17 No edit if no bodyjnyfah-1/+4
2025-03-17some changesjnyfah-3/+2
2025-03-17chore: Bump `Edition::CURRENT` to 2024Lukas Wirth-16/+16
2025-03-16refactor: Remove unnecessary `Arc`Lukas Wirth-1/+1
2025-03-15cargo fmtBenjaminBrienen-1/+4
2025-03-15cargo fmtBenjaminBrienen-290/+264
2025-03-15cargo clippy --fixBenjaminBrienen-3/+3
2025-03-15Fix 2024 syntax errorsBenjaminBrienen-2/+2
2025-03-15chore: Remove legacy `SyntaxContextId` re-exportLukas Wirth-4/+4
2025-03-13internal: don't panic when the crate graph isn't ready #19351David Barsky-8/+17
2025-03-13remove fixmejnyfah-1/+0
2025-03-13insert braces for closurejnyfah-5/+32
2025-03-12Salsify the crate graphChayim Refael Friedman-113/+111
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
2025-03-10internal: port rust-analyzer to new SalsaDavid Barsky-306/+159
2025-03-10Merge pull request #19326 from Veykril/push-vovuxzkzrowpLukas Wirth-10/+11
Add missing name-ref parents to syntactic highlighting
2025-03-10Add missing name-ref parents to syntactic highlightingLukas Wirth-10/+11
2025-03-10Merge pull request #19332 from Veykril/push-trvznlqsvtyqLukas Wirth-30/+5
Make change annotations per text-edit
2025-03-10Make change annotations per text-editLukas Wirth-30/+5
2025-03-10Merge pull request #19330 from ChayimFriedman2/normalize-projectionLukas Wirth-170/+302
fix: Normalize projections in evaluated const display and layout calculation
2025-03-06Warn the user when a rename will change the meaning of the programChayim Refael Friedman-0/+88
Specifically, when a rename of a local will change some code that refers it to refer another local, or some code that refer another local to refer to it. We do it by introducing a dummy edit with an annotation. I'm not a fond of this approach, but I don't think LSP has a better way.
2025-03-06Use correct crate for trait env in `render_const_scalar()`Chayim Refael Friedman-1/+6
2025-03-06Pass the target crate in `HirFormatter`Chayim Refael Friedman-170/+263
This is required to format evaluated consts, because we need trait env, and it needs the crate (currently it uses the last crate in topological order, which is wrong, the next commit will fix that).
2025-03-06Normalize projections in evaluated const display and layout calculationChayim Refael Friedman-0/+34
2025-03-05Fix syntax highlightingg punct filtering ignoring modsLukas Wirth-6/+4
2025-03-05Merge pull request #19274 from Veykril/push-pouwrwwrlrltLukas Wirth-430/+457
Highlight unsafe operations as unsafe, not definitions