about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-04-04Update `rustc-literal-escaper` version to `0.0.2`Guillaume Gomez-4/+4
2025-04-04Merge pull request #19519 from snprajwal/project-control-no-depsLukas Wirth-2/+31
feat(project-model): provide flag for no deps
2025-04-04internal: fix salsa-ified crate graph working with lazy project discoveryDavid Barsky-31/+23
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-125/+98
2025-04-04feat(project-model): provide flag for no depsPrajwal S N-2/+31
A Cargo project can now be built without any dependency metadata being fetched. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-04Remove usage of `rustc_lexer::unescape` in rust-analyzerGuillaume Gomez-18/+21
2025-04-04chore: clean up some FIXMEsPrajwal S N-47/+36
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-04fix language-configuration.jsonBenjaminBrienen-3/+3
2025-04-03Stabilize `cfg_boolean_literals`clubby789-29/+0
2025-04-03feat(proc-macro-srv): support metadata version 10Prajwal S N-4/+4
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-03fix(ide-assists): remove `AssistKind::None`Prajwal S N-15/+5
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-11/+107
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-01Merge pull request #19494 from Veykril/push-uzmzppouxuvrLukas Wirth-53/+16
chore: Remove unnecessary `Arc` clones
2025-04-01Merge pull request #19496 from Veykril/push-zuwsrswwtzsuLukas Wirth-74/+81
chore: Replace some `invoke`s with `invoke_actual` in hir-ty
2025-04-01chore: Remove unnecessary `Arc` clonesLukas Wirth-53/+16
2025-04-01chore: Replace some `invoke`s with `invoke_actual` in hir-tyLukas Wirth-74/+81
2025-04-01Support metadata version 10 in proc-macro-srvJakub Beránek-2/+2
2025-04-01chore: Disable rust-cache in CILukas Wirth-33/+23
It doesn't actually work with merge groups ...
2025-04-01Merge pull request #19492 from ChayimFriedman2/experimentChayim Refael Friedman-1/+1
Avoid relying on `block_def_map()` needlessly
2025-04-01Avoid relying on `block_def_map()` needlesslyChayim Refael Friedman-1/+1
We can compute the wanted information from the block's interned data.
2025-03-31fix: Fix panic in progress due to splitting unicode incorrectlyRoss Delinger-2/+2
2025-03-31Merge pull request #19485 from Veykril/push-mqlnvzkuplnmLukas Wirth-29/+51
chore: Clean CI a bit
2025-03-31chore: Clean CI a bitLukas Wirth-29/+51
2025-03-31fix: Fix new nightly lintsLukas Wirth-96/+88
2025-03-31fix: Cleanup param name inlay hint filteringLukas Wirth-118/+187
2025-03-30Remove attribute `#[rustc_error]`Vadim Petrochenkov-4/+0
2025-03-29Fix debug sourceFileMap when using cppvsdbgInflation-1/+1
- Fix #18782
2025-03-29fix: Fix, clarify and require a value for `proc_macro_cwd` of `CrateData`Lukas Wirth-74/+143
2025-03-28update testHegui Dai-22/+22
2025-03-28move "impl<> for <>" and test about itHegui Dai-27/+0
2025-03-28Merge pull request #19375 from ChayimFriedman2/do-not-completeLukas Wirth-291/+768
feat: Allow crate authors to control completion of their things
2025-03-28Fix a bug in orphan rules calculationChayim Refael Friedman-12/+30
Where a fundamental type applied twice wasn't considered local.
2025-03-27Allow crate authors to control completion of their thingsChayim Refael Friedman-291/+768
Via the new `#[rust_analyzer::completions(...)]` attribute. Also fix a bug with existing settings for that where the paths wouldn't resolve correctly.
2025-03-27Merge pull request #19460 from Veykril/push-krmvxxvrlmyxLukas Wirth-2/+3
fix: Fix `format_args` lowering using wrong integer suffix
2025-03-27Merge pull request #19459 from Veykril/push-swywyozvsqowLukas Wirth-41/+41
refactor: Shuffle some unsafety around in proc-macro-srv
2025-03-27fix: Fix `format_args` lowering using wrong integer suffixLukas Wirth-2/+3
2025-03-27refactor: Shuffle some unsafety around in proc-macro-srvLukas Wirth-41/+41
2025-03-27Merge pull request #19457 from Veykril/push-xpmluxlzprpyLukas Wirth-12/+63
chore: Remove salsa dependency from proc-macro server again
2025-03-27chore: Remove salsa dependency from proc-macro server againLukas Wirth-12/+63
2025-03-26Merge pull request #19451 from Veykril/push-tuqmmvkrtpzlLukas Wirth-15/+19
refactor: Use MEDIUM durability for crate-graph changes, high for library source files
2025-03-26refactor: Use MEDIUM durability for crate-graph changes, high for library ↵Lukas Wirth-15/+19
source files The idea here is that the crate graph may change over time, but library source file contents *never* will (or really never should). Disconnecting the two means that queries that depend on library sources will not need to re-validatewhen the crate graph changes (unless they depend on the crate graph in some capacity).
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-25Merge pull request #19433 from snprajwal/fix-replace-let-elseLukas Wirth-8/+41
fix(ide-assists): `let else` to `if let else`
2025-03-25minor: Simplify impl-ty parse validationLukas Wirth-55/+74
2025-03-25Merge pull request #19388 from Veykril/push-oqysrnttwywuLukas Wirth-9/+39
feat: parse `unsafe` record fields
2025-03-25feat: parse `unsafe` record fieldsLukas Wirth-9/+39