Commit graph

273926 commits

Author SHA1 Message Date
Lukas Wirth
b8fdfcc227 Remove recursion_limit special casing in tests 2024-12-31 13:00:23 +01:00
Lukas Wirth
20a7bf12eb
Merge pull request #18790 from ChayimFriedman2/proper-make
internal: Create a quoting mechanism instead of textual AST make
2024-12-30 11:39:29 +00:00
Lukas Wirth
56e05dc2bc
Merge pull request #18794 from 1hakusai1/fix_fill_match_arm_in_tokio_main
Fix bug of "fill match arm" action in tokio::main macro
2024-12-30 11:30:32 +00:00
Lukas Wirth
39ba498c8c
Merge pull request #18793 from ChayimFriedman2/fixup
minor: Remove unneeded conversions
2024-12-30 11:20:49 +00:00
1hakusai1
6fa3b3f85b Fix bug of "fill match arm" action in tokio::main macro
https://github.com/rust-lang/rust-analyzer/issues/18027
2024-12-30 20:06:17 +09:00
Chayim Refael Friedman
b4ad30deaa Remove unneeded conversions 2024-12-30 13:04:19 +02:00
Lukas Wirth
4a1c7d1719
Merge pull request #18792 from Veykril/push-wonkvzozmmwz
Decouple proc-macro server protocol from the server implementation
2024-12-30 11:00:08 +00:00
Lukas Wirth
a081215f40
Merge pull request #18791 from roife/fix-18786
fix: avoid generating colliding names in extract_variable
2024-12-30 10:52:53 +00:00
Lukas Wirth
042528aa76 Move proc-macro protocol into legacy module 2024-12-30 11:47:08 +01:00
Lukas Wirth
0affbd4919 Cleanup proc-macro dylib handling 2024-12-30 11:14:27 +01:00
Lukas Wirth
d4b53f5aab Decouple proc-macro server protocol from the server implementation 2024-12-30 10:33:57 +01:00
roife
9016a4cdf7 fix: avoid generating colliding names in extract_variable 2024-12-30 15:30:05 +08:00
Chayim Refael Friedman
33f1f1d787 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
a0c052fa57 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
be12c80d23 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
ca0c8da517 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
259eaf9c90
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
7f757b96f5 fix: Fix invalid -O flag used by cfg discovery 2024-12-29 16:04:17 +01:00
Lukas Wirth
b570206ca4
Merge pull request #18785 from Veykril/push-uvsqposqyvmo
Cleanup toolchain info fetching
2024-12-29 12:57:31 +00:00
Lukas Wirth
bde1322b90
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
f36a93ec52 Inline toolchain_info module 2024-12-29 13:43:12 +01:00
Lukas Wirth
3d9a15bbf9 Automatically cancel CI checks on new push to same PR 2024-12-29 13:41:22 +01:00
Lukas Wirth
d3ebb1469c
Merge pull request #18774 from Veykril/push-ysppqxpuknnw
Implement parameter variance inference
2024-12-29 12:34:48 +00:00
Lukas Wirth
d105253194 Force a current dir to be supplied for rustc info fetching 2024-12-29 13:26:04 +01:00
Lukas Wirth
a4a6a43000 Split out ProjectWorkspace::load_cargo 2024-12-29 12:54:41 +01:00
Lukas Wirth
8606441fcc Enforce a current directory being set for spawned commands 2024-12-29 12:51:13 +01:00
Lukas Wirth
d5f7e78f69 Cleanup toolchain info fetching 2024-12-29 12:25:51 +01:00
Lukas Wirth
0337e79c5c
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
1f0696de43 fix: Do not merge spans if they have different anchors 2024-12-29 11:29:32 +01:00
Lukas Wirth
54b75a1479
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
a102ea1c2d Describe variance resolution approach differences to rustc 2024-12-29 10:53:17 +01:00
Chayim Refael Friedman
30fa18c44f Consider Enum::Variant even when it comes from a different crate 2024-12-28 22:43:51 +02:00
Lukas Wirth
bf27d88616 Show variance of parameters on hover 2024-12-28 20:31:20 +01:00
Lukas Wirth
e54cf80b98 Simplify 2024-12-28 19:54:22 +01:00
Lukas Wirth
d66a337658 Get rid of constrain and solve steps 2024-12-28 19:54:22 +01:00
Lukas Wirth
0e50c3c81b Remove unnecessary VarianceTerm 2024-12-28 19:54:22 +01:00
Lukas Wirth
4ea29d619c Implement parameter variance inference 2024-12-28 19:54:22 +01:00
Lukas Wirth
47f497d636
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
873cf255de Add DynTyExt::principal_id 2024-12-28 18:26:45 +01:00
Lukas Wirth
73ae6a0ba8 Downgrade salsa log levels 2024-12-28 18:23:24 +01:00
Lukas Wirth
171be2bd58 fix: Fix flycheck diagnostics flickering for binary targets 2024-12-28 18:16:55 +01:00
Laurențiu Nicola
8d8b42df66
Merge pull request #18770 from Erithax/patch-1
fix doc typo
2024-12-27 22:28:38 +00:00
Erithax
b2531ba7a6
fix doc typo 2024-12-27 23:13:09 +01:00
Lukas Wirth
eea4a9ab9e
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
352116ce97
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
bae8fb5c80
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
637700e974 internal: wrap salsa::Cycle 2024-12-26 10:26:42 -05:00
Lukas Wirth
5290f20f08 internal: Swallow error: config value is not set cargo error 2024-12-26 16:13:39 +01:00
Lukas Wirth
ec5e4855cc
Merge pull request #18760 from Veykril/push-tkvlvvqyszrs
internal: Workaround salsa cycles leaking
2024-12-26 14:09:49 +00:00
Lukas Wirth
27dd75d93c internal: Workaround salsa cycles leaking 2024-12-26 14:55:20 +01:00