Chayim Refael Friedman
791a63255b
Move some more AST makers to the quote macro
...
And implement addons as necessary.
There are many more makers to be moved, and I'm not completely satisfied with this (due to the ease of making a mistake in the AST structure, and slightly less but also because of the need to remember whitespaces), but this is already enough to see how this will look like.
2024-12-30 05:46:06 +02:00
Chayim Refael Friedman
abd7263179
Create a quote!
-like API for crafting AST nodes
...
Instead of messing with textual `make`.
And port one `make` helper to it, for the sake of testing.
2024-12-30 04:54:39 +02:00
Chayim Refael Friedman
505e82c19c
Add a function to convert a SyntaxKind to its text, where possible
...
This will also help for the make's quote macro.
2024-12-30 04:01:05 +02:00
Chayim Refael Friedman
737500137f
Generate a method for static retrieval of the SyntaxKind of a node, where possible
...
This will help for the quote macro for `ast::make`.
2024-12-30 03:13:17 +02:00
Lukas Wirth
59bc7b49d0
Merge pull request #18789 from Veykril/push-sypxzqsvmzzp
...
fix: Fix invalid `-O` flag used by cfg discovery
2024-12-29 15:18:32 +00:00
Lukas Wirth
fb2ca58583
fix: Fix invalid -O
flag used by cfg discovery
2024-12-29 16:04:17 +01:00
Lukas Wirth
90b724afad
Merge pull request #18785 from Veykril/push-uvsqposqyvmo
...
Cleanup toolchain info fetching
2024-12-29 12:57:31 +00:00
Lukas Wirth
293df4caec
Merge pull request #18787 from Veykril/push-uymlpukspxqr
...
Automatically cancel CI checks on new push to same PR
2024-12-29 12:55:40 +00:00
Lukas Wirth
98fde69dcf
Inline toolchain_info module
2024-12-29 13:43:12 +01:00
Lukas Wirth
dfcff86425
Automatically cancel CI checks on new push to same PR
2024-12-29 13:41:22 +01:00
Lukas Wirth
11b351f44b
Merge pull request #18774 from Veykril/push-ysppqxpuknnw
...
Implement parameter variance inference
2024-12-29 12:34:48 +00:00
Lukas Wirth
f5fb2b9e9f
Force a current dir to be supplied for rustc info fetching
2024-12-29 13:26:04 +01:00
Lukas Wirth
8d2b12fe0e
Split out ProjectWorkspace::load_cargo
2024-12-29 12:54:41 +01:00
Lukas Wirth
5ce14b0439
Enforce a current directory being set for spawned commands
2024-12-29 12:51:13 +01:00
Lukas Wirth
0f95e60da3
Cleanup toolchain info fetching
2024-12-29 12:25:51 +01:00
Lukas Wirth
885b6c697c
Merge pull request #18784 from Veykril/push-pqtwsvquxoty
...
fix: Do not merge spans if they have different anchors
2024-12-29 10:44:04 +00:00
Lukas Wirth
49b509310c
fix: Do not merge spans if they have different anchors
2024-12-29 11:29:32 +01:00
Lukas Wirth
02d1bf31a2
Merge pull request #18779 from ChayimFriedman2/enum-variant
...
fix: Consider `Enum::Variant` even when it comes from a different crate
2024-12-29 09:58:16 +00:00
Lukas Wirth
2d299ab8a4
Describe variance resolution approach differences to rustc
2024-12-29 10:53:17 +01:00
Chayim Refael Friedman
664e1a18c9
Consider Enum::Variant
even when it comes from a different crate
2024-12-28 22:43:51 +02:00
Lukas Wirth
bb921fbe94
Show variance of parameters on hover
2024-12-28 20:31:20 +01:00
Lukas Wirth
60e28c6bd9
Simplify
2024-12-28 19:54:22 +01:00
Lukas Wirth
9419e199d8
Get rid of constrain and solve steps
2024-12-28 19:54:22 +01:00
Lukas Wirth
85119b528a
Remove unnecessary VarianceTerm
2024-12-28 19:54:22 +01:00
Lukas Wirth
eee2761140
Implement parameter variance inference
2024-12-28 19:54:22 +01:00
Lukas Wirth
dc6cea57a2
Merge pull request #18778 from Veykril/push-oontvoqmxkno
...
fix: Fix flycheck diagnostics flickering for binary targets
2024-12-28 17:31:11 +00:00
Lukas Wirth
17b3662755
Add DynTyExt::principal_id
2024-12-28 18:26:45 +01:00
Lukas Wirth
c800485555
Downgrade salsa log levels
2024-12-28 18:23:24 +01:00
Lukas Wirth
cf307438bc
fix: Fix flycheck diagnostics flickering for binary targets
2024-12-28 18:16:55 +01:00
Michael Sloan
34dc94bb2d
Only include SCIP SymbolInformation for first inherent impl
2024-12-27 18:13:14 -07:00
Michael Sloan
3a93fe1150
Message updates from review
2024-12-27 18:12:55 -07:00
Michael Sloan
f8ea9cace8
Update crates/ide/src/moniker.rs
...
Co-authored-by: David Barsky <me@davidbarsky.com>
2024-12-27 15:58:32 -07:00
Michael Sloan
eb4543818d
Update crates/ide/src/moniker.rs
...
Co-authored-by: David Barsky <me@davidbarsky.com>
2024-12-27 15:58:26 -07:00
Laurențiu Nicola
d3bb15ecec
Merge pull request #18770 from Erithax/patch-1
...
fix doc typo
2024-12-27 22:28:38 +00:00
Erithax
c7f5021de1
fix doc typo
2024-12-27 23:13:09 +01:00
Lukas Wirth
a77cf8e189
Merge pull request #18744 from gbbosak/master
...
Treat ; as a terminator rather part of a glued expression
2024-12-27 09:57:02 +00:00
Lukas Wirth
1ce4de2585
Merge pull request #18762 from davidbarsky/davidbarsky/wrap-salsa-cancellation-error
...
internal: wrap `salsa::Cycle`
2024-12-26 15:42:53 +00:00
Lukas Wirth
7514a92018
Merge pull request #18761 from Veykril/push-vktnzltnxupr
...
internal: Swallow `error: config value is not set` cargo error
2024-12-26 15:28:24 +00:00
David Barsky
3ff2596c3f
internal: wrap salsa::Cycle
2024-12-26 10:26:42 -05:00
Lukas Wirth
e820c4da90
internal: Swallow error: config value is not set
cargo error
2024-12-26 16:13:39 +01:00
Lukas Wirth
d12a89b16d
Merge pull request #18760 from Veykril/push-tkvlvvqyszrs
...
internal: Workaround salsa cycles leaking
2024-12-26 14:09:49 +00:00
Lukas Wirth
ed8227c649
internal: Workaround salsa cycles leaking
2024-12-26 14:55:20 +01:00
roife
2983ce8b9e
minor: format editor/code
2024-12-26 20:44:42 +08:00
roife
bba8d2dc02
move env vars for snapshot tests to UpdateTest
2024-12-26 20:19:26 +08:00
roife
1dcce45f48
optimize snapshot-testing macro detection and add tests
2024-12-26 19:51:14 +08:00
roife
c54bfcb181
fix incorrect name for UpdateTest config
2024-12-26 19:51:14 +08:00
roife
c30e9c0618
fix: await setting config to not ask before UpdateTest
and format
2024-12-26 19:51:14 +08:00
roife
22280b65ff
feat: add config UpdateTest
to hover actions
2024-12-26 19:51:14 +08:00
roife
57cd0d5dbe
feat: support UpdateTest in hover actions and runnables
2024-12-26 19:51:14 +08:00
roife
edb61b10ab
feat: support UpdateTest in codelens
2024-12-26 19:50:32 +08:00