about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates
AgeCommit message (Collapse)AuthorLines
2025-01-03Merge pull request #18826 from Veykril/push-qnsqormwlwqmLukas Wirth-36/+21
fix: Clear flycheck diagnostics per package properly
2025-01-03fix: Clear flycheck diagnostics per package properlyLukas Wirth-36/+21
2025-01-03Merge pull request #18825 from Veykril/push-sllokkprznkqLukas Wirth-50/+81
minor: Encode TraitData bools as bitflags
2025-01-03minor: Encode TraitData bools as bitflagsLukas Wirth-50/+81
2025-01-03Merge pull request #18822 from bryceberger/targetdir-absoluteLukas Wirth-2/+1
allow targetDir to be an absolute path
2025-01-03Merge pull request #18327 from ChayimFriedman2/flat-ttLukas Wirth-2252/+2321
Store token trees in contiguous `Vec` instead of as a tree
2025-01-02allow targetDir to be an absolute pathBryce Berger-2/+1
2025-01-02Store token trees in contiguous `Vec` instead of as a treeChayim Refael Friedman-2252/+2321
I expected this to be faster (due to less allocations and better cache locality), but benchmarked it is not (neither it is slower). Memory usage, however, drops by ~50mb (of `analysis-stats .`). I guess tt construction is just not hot. This also simplifies using even less memory for token trees by compressing equal span, which I plan to do right after. Some workflows are more easily expressed with a flat tt, while some are better expressed with a tree. With the right helpers, though (which was mostly a matter of trial and error), even the worst workflows become very easy indeed.
2025-01-02Remove rust-analyzer duplicate crates integration testslucasholten-332/+0
2025-01-02Automatically sort crate graphlucasholten-11/+7
2025-01-02fix no space insert before and after if value is only spacesdfireBird-2/+38
2025-01-02Fix overflow detection in MIR evaluationChayim Refael Friedman-19/+206
With a bit of higher-order macros everything sorts out well. And also fix a discovered bug when comparing long strings.
2025-01-02fix: Fix flycheck cancellations leaving stale errorsLukas Wirth-14/+18
2025-01-01Fix testslucasholten-2/+2
2025-01-01Remove load_cargo_with_fake_sysrootlucasholten-54/+30
2025-01-01Merge pull request #18179 from ChayimFriedman2/omit-trait-completionLukas Wirth-100/+932
feat: Allow excluding specific traits from completion
2025-01-01CleanupLukas Wirth-68/+46
2025-01-01Revamp auto-import exclude configLukas Wirth-44/+118
2025-01-01Simplify completion config path resolutionsLukas Wirth-94/+49
2025-01-01Reduce the default autoimport exclusion listLukas Wirth-117/+85
2025-01-01Merge pull request #18809 from Veykril/push-ktwrzsmzlplwLukas Wirth-9/+3
internal: Do not render closure ids in hover messages
2025-01-01Allow flyimporting excluded trait items if there is an exact match in the nameChayim Refael Friedman-3/+51
I.e. with `fn foo()`, don't complete at `x.fo|`, but complete (with imports) for `x.foo|`, since this is less likely to have false positives. I opted to only do that for flyimport, even though for basic imports there can also be snippet completion (completing the params list for a method), since this is less universally applicable and seems not so useful.
2025-01-01Allow excluding specific traits from completionChayim Refael Friedman-82/+891
To be accurate, only their methods are excluded, the trait themselves are still available. I also excluded a bunch of std traits by default. Some less opinionated, like `AsRef`, which should never be used directly except in generic scenarios (and won't be excluded there), some more opinionated, like the ops traits, which I know some users sometimes want to use directly. Either way it's configurable. It should be pretty easy to extend support to excluding only specific methods, but I didn't do that currently. Traits configured to be excluded are resolved in each completion request from scratch. If this proves too expensive, it is easy enough to cache them in the DB.
2025-01-01Merge pull request #18757 from roife/fix-17812Lukas Wirth-96/+469
feat: support updating snapshot tests with codelens/hovering/runnables
2025-01-01internal: Do not render closure ids in hover messagesLukas Wirth-9/+3
They are not useful
2024-12-31Merge pull request #18797 from profetia/issue10583Chayim Refael Friedman-34/+758
Fix replace-if-let-with-match generates non-exhausive match
2024-12-31Add back optimizationslucasholten-4/+8
2024-12-31Add back tests removed in #18080lucasholten-0/+19629
2024-12-31Add back crate graph deduplicationlucasholten-1/+4
2024-12-31Remove CARGO_RUSTC_CURRENT_DIRlucasholten-16/+4
2024-12-31Fix replace-if-let-with-match generates non-exhausive matchyanglsh-44/+411
2024-12-31Base relative cargo configs onto the manifestLukas Wirth-14/+35
This is not correct, but should be equivalent in most cases
2024-12-31fix: Populate cargo config env vars for cratesLukas Wirth-83/+43
2024-12-31Merge pull request #18802 from roife/fix-18800Lukas Wirth-2/+1
fix: incorrect file_id used for ranges in outgoing calls
2024-12-31Merge pull request #18805 from Veykril/push-pzurvxvoolxsLukas Wirth-18/+12
internal: Implement `<RaSpanServer as SourceFile>::eq`
2024-12-31fix: incorrect file_id used for ranges in outgoing callsroife-2/+1
2024-12-31Implement `<RaSpanServer as SourceFile>::eq`Lukas Wirth-9/+9
2024-12-31Remove recursion_limit special casing in testsLukas Wirth-9/+3
2024-12-31Merge pull request #18758 from mgsloan/scip-unique-symbolsLukas Wirth-323/+618
Improve SCIP symbols
2024-12-31feat: show go-to-type-def actions for subst when hoveringroife-3/+57
2024-12-30Move `container_to_definition` function into `enclosing_definition`Michael Sloan-19/+15
2024-12-30Remove erroneous omit of inherent implsMichael Sloan-9/+0
Should have been included in 34dc94bb2d05def8b88739a9382b127feb1a35a0
2024-12-30TODO -> FIXMEMichael Sloan-10/+12
2024-12-30Make `impl HirDisplay for TraitRef` provide just the trait typeMichael Sloan-68/+24
2024-12-30Add test cases for #10583yanglsh-0/+357
2024-12-30refactor snapshot-tests detection in runnablesroife-92/+104
2024-12-30Fix render of literal to be rendered in codeblockdfireBird-24/+65
2024-12-30Merge pull request #18790 from ChayimFriedman2/proper-makeLukas Wirth-60/+1647
internal: Create a quoting mechanism instead of textual AST make
2024-12-30Merge pull request #18794 from 1hakusai1/fix_fill_match_arm_in_tokio_mainLukas Wirth-9/+7
Fix bug of "fill match arm" action in tokio::main macro
2024-12-30Merge pull request #18793 from ChayimFriedman2/fixupLukas Wirth-14/+14
minor: Remove unneeded conversions