about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-01-06fix: Fix flycheck getting confused which package to checkLukas Wirth-53/+58
2025-01-06Merge pull request #18843 from Veykril/push-usuzxtzsnrptLukas Wirth-9/+24
fix: Handle newstyle `rustc_intrinsic` safety correctly
2025-01-06fix: Handle newstyle `rustc_intrinsic` safety correctlyLukas Wirth-9/+24
2025-01-06fix: Fix relative .cargo env vars not workingLukas Wirth-7/+30
2025-01-04Support the new `CoercePointee` deriveChayim Refael Friedman-64/+768
2025-01-04Merge pull request #18835 from Veykril/push-wnmwwoktmpytLukas Wirth-0/+85
Hide synthetic locals from completions
2025-01-04Hide synthetic locals from completionsLukas Wirth-0/+85
2025-01-03Merge pull request #18831 from lnicola/ci-rustc-testsLaurențiu Nicola-1/+1
Fix metrics workflow
2025-01-03Fix metrics workflowLaurențiu Nicola-1/+1
2025-01-03Merge pull request #18806 from LHolten/deduplicate-crate-graphLukas Wirth-35/+19299
fix: Deduplicate crate graph
2025-01-03Merge pull request #18830 from alibektas/18814Lukas Wirth-2/+9
fix: 18814
2025-01-03fix: 18814Ali Bektas-2/+9
2025-01-03Merge pull request #18829 from Veykril/push-ouvwrxoovwkrLukas Wirth-7/+2
Disable rustc_test metrics again
2025-01-03Merge pull request #18828 from lnicola/edition-descriptionLaurențiu Nicola-0/+1
minor: Add description field to edition manifest
2025-01-03Disable rustc_test metrics againLukas Wirth-7/+2
2025-01-03Merge pull request #18827 from Veykril/push-zqsplmtwsxxkLukas Wirth-1/+4
minor: Honor `CARGO_TARGET_DIR` for cargo target dir config
2025-01-03Add description field to edition manifestLaurențiu Nicola-0/+1
2025-01-03minor: Honor `CARGO_TARGET_DIR` for cargo target dir configLukas Wirth-1/+4
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/+2322
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/+2322
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/+1028
feat: Allow excluding specific traits from completion
2025-01-01CleanupLukas Wirth-68/+46
2025-01-01Revamp auto-import exclude configLukas Wirth-55/+169
2025-01-01Simplify completion config path resolutionsLukas Wirth-94/+49
2025-01-01Reduce the default autoimport exclusion listLukas Wirth-186/+90
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/+1011
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-97/+540
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