Commit graph

283739 commits

Author SHA1 Message Date
David Barsky
b97596c81f analysis-stats: run Salsa's LRU at the end of analysis 2025-03-17 10:45:03 -04:00
Lukas Wirth
d89aefd5f2
Merge pull request #19376 from Veykril/push-ultzutkwqupt
minor: Remove unnecessary allocations in `function::params_display`
2025-03-16 14:35:16 +00:00
Lukas Wirth
a51070ba88 minor: Remove unnecessary allocations in function::params_display 2025-03-16 15:19:25 +01:00
Lukas Wirth
98f346f46a
Merge pull request #19363 from euclio/varargs-detail
display varargs in completion detail
2025-03-16 13:43:11 +00:00
Lukas Wirth
7b33761eea
Merge pull request #19344 from BenjaminBrienen/add-icons
Add icons to views
2025-03-16 13:42:30 +00:00
Lukas Wirth
0e4c2069ea
Merge pull request #19354 from ChayimFriedman2/rtn-prep
Preparation to Return Type Notation (RTN)
2025-03-16 13:21:23 +00:00
Lukas Wirth
f7e883a0cc
Merge pull request #19368 from Veykril/push-pkooqmlxszps
refactor: Remove `CrateGraphBuilder::iter_mut`
2025-03-16 09:43:25 +00:00
Lukas Wirth
cd0582c1e1 refactor: Remove unnecessary Arc 2025-03-16 10:27:48 +01:00
Lukas Wirth
ccecb291cb refactor: Remove CrateGraphBuilder::iter_mut 2025-03-16 10:24:15 +01:00
Chayim Refael Friedman
fcd6e94186
Merge pull request #19236 from BenjaminBrienen/rust-2024-and-1.85
Rust 2024 and 1.85
2025-03-15 20:48:46 +00:00
Andy Russell
f98dec54d2
display varargs in completion detail 2025-03-15 16:36:14 -04:00
BenjaminBrienen
de08516547 Add view icons 2025-03-15 21:34:12 +01:00
BenjaminBrienen
52e6c2602b cargo fmt 2025-03-15 21:32:01 +01:00
BenjaminBrienen
dac0032613 fix temporary value dropped while borrowed 2025-03-15 21:32:01 +01:00
BenjaminBrienen
053e6c7c4e cargo xtask tidy 2025-03-15 21:32:01 +01:00
BenjaminBrienen
4041c67e90 cargo fmt 2025-03-15 21:32:01 +01:00
BenjaminBrienen
edb25788a0 fix clippy::doc_overindented_list_items 2025-03-15 21:32:01 +01:00
BenjaminBrienen
b5b7a54e95 cargo clippy --fix 2025-03-15 21:32:01 +01:00
BenjaminBrienen
87228245cf edition = "2024" 2025-03-15 21:32:01 +01:00
BenjaminBrienen
ebb85886ab rust-version = "1.85" 2025-03-15 21:32:01 +01:00
BenjaminBrienen
b12d934ced Fix 2024 syntax errors 2025-03-15 21:32:01 +01:00
Chayim Refael Friedman
845ca7b7ac
Merge pull request #19370 from DriedYellowPeach/refactor/io-result
refactor: Simplify by removing ? operator
2025-03-15 19:53:43 +00:00
Lukas Wirth
2d6ab1580f
Merge pull request #19369 from SomeoneToIgnore/lenient-action-resolve
Do not error for actions with no data to resolve
2025-03-15 19:43:59 +00:00
Neil
c6033c831d
refactor: Simplify by removing ? operator
`out.flush()` already returns a `io::Result<()>`, so there is no need for `?` operator and `Ok(())`
2025-03-15 12:34:48 -07:00
Kirill Bulatov
3bec5066bc Do not error for actions with no data to resolve
Same as the other resolve code handlers in the same file.
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#version_3_17_0
does not forbid resolving with no data, so instead of erroring, just consider such items resolved already.
2025-03-15 21:27:18 +02:00
Lukas Wirth
6e926fd216
Merge pull request #19366 from Veykril/push-mkunlxkysssr
chore: Remove legacy `SyntaxContextId` re-export
2025-03-15 16:25:13 +00:00
Lukas Wirth
5528b96faa
Merge pull request #19367 from Veykril/push-ryowkxkntnpo
chore: Drop legacy salsa
2025-03-15 16:21:20 +00:00
Lukas Wirth
f2d36158bc chore: Remove legacy SyntaxContextId re-export 2025-03-15 17:09:17 +01:00
Lukas Wirth
94e0b32258 chore: Drop legacy salsa 2025-03-15 12:02:31 -04:00
Lukas Wirth
cbd6265920
Merge pull request #19364 from Veykril/push-uonyorwwzpzx
fix: Fix missing `with_durability` calls
2025-03-15 15:09:18 +00:00
Lukas Wirth
246415809c fix: Fix missing with_durability calls 2025-03-15 15:53:23 +01:00
Laurențiu Nicola
ca115123d8
Merge pull request #19360 from darichey/msrv-1.85
internal: Require Rust 1.85
2025-03-15 06:06:17 +00:00
David Richey
7060bfe553 Require Rust 1.85 2025-03-14 16:55:24 -05:00
Lukas Wirth
ad3675dd3a
Merge pull request #19271 from vishruth-thimmaiah/for_loop_to_while_let
feat: for loop to while let assist
2025-03-14 20:22:02 +00:00
Lukas Wirth
f7c1a6d34c
Merge pull request #19356 from flodiebold/push-snpyvwuulkmw
fix: Avoid recursively debug printing crates
2025-03-14 18:19:05 +00:00
Florian Diebold
2c2bc99a63 Avoid recursively debug printing crates 2025-03-14 19:02:06 +01:00
Vishruth-Thimmaiah
aed21ed588
feat: for loop to while let assist 2025-03-14 19:15:37 +05:30
Lukas Wirth
1d4ab0cb95
Merge pull request #19228 from Veykril/push-xxplutrwplou
Split some queries
2025-03-14 13:33:07 +00:00
Lukas Wirth
2e83e8a84d Split variant_data into its own query 2025-03-14 14:16:33 +01:00
Lukas Wirth
176981ef49 Split enum variants out of enum_data query 2025-03-14 13:32:53 +01:00
Lukas Wirth
1835bc2a87 Move attribute parsing out of data module 2025-03-14 13:31:41 +01:00
Lukas Wirth
9ccee20d42 Split assoc items out of trait_data/impl_data queries 2025-03-14 13:31:41 +01:00
David Barsky
35209f462b
Merge pull request #19351 from davidbarsky/davidbarsky/fix-panic-in-diagnostics
internal: don't panic when the crate graph isn't ready
2025-03-13 19:46:01 +00:00
David Barsky
a508206f4e internal: don't panic when the crate graph isn't ready #19351 2025-03-13 15:14:08 -04:00
Chayim Refael Friedman
f31ddcf524 Emit an error when RTN is used in an incorrect place
We miss one place: associated type bindings aka. `impl Trait<Type(..): Send>`, but we also miss it for Fn-style parenthesizes error so I left it out for now.
2025-03-12 23:34:16 +02:00
Chayim Refael Friedman
f335d00263 Lower Return Type Notation (Type::method(..): Send)
We do it the way rustc does it, by only marking segments with it, and not the whole path. This will allow extending where it is allowed in the future.
2025-03-12 23:34:16 +02:00
Chayim Refael Friedman
8148fa9324
Merge pull request #19337 from ChayimFriedman2/salsify-crate-graph-final
Salsify the crate graph
2025-03-12 19:17:29 +00:00
Chayim Refael Friedman
5c72923368 Salsify the crate graph
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
2025-03-12 21:02:30 +02:00
Florian Diebold
74220a6f80
Merge pull request #19343 from flodiebold/push-tmumzoxxmxsr
Make GenericParamsCollector::type_or_consts not unnecessarily pub(crate)
2025-03-11 14:26:24 +00:00
¨Florian
521fa18d5d Make GenericParamsCollector::type_or_consts not unnecessarily pub(crate) 2025-03-11 15:09:39 +01:00