Lukas Wirth
c365bd96d3
refactor: Do not use Expander
in assoc item lowering
...
`Expander` is a macro expansion solution for body lowering, there is no need to use it here
2025-03-18 11:11:36 +01:00
Ali Bektas
1afbcc06f3
Test unsafeness is respected when manual impling derives
2025-03-17 22:37:21 +01:00
Ali Bektas
824df43d2d
Observe unsafeness only for replace_derive_with_manual_impl
2025-03-17 21:57:21 +01:00
Ali Bektas
477b987179
Observe unsafeness when generating manual impls of former derives
2025-03-17 21:55:27 +01:00
HKalbasi
0c1b4838ce
Merge pull request #19005 from duncanawoods/18955---fix-running-tests-for-packages-with-multiple-targets
...
fix testing packages with multiple targets
2025-03-17 19:54:49 +00:00
Lukas Wirth
ef60b78479
Merge pull request #19378 from davidbarsky/davidbarsky/run-lru-at-end-of-analysis-stats
...
analysis-stats: run Salsa's LRU at the end of analysis
2025-03-17 14:59:46 +00:00
David Barsky
fa89f29303
analysis-stats: run Salsa's LRU at the end of analysis
2025-03-17 10:45:03 -04:00
Lukas Wirth
b03af79bc0
Merge pull request #19379 from Veykril/push-nwmqsvtqpnko
...
chore: Bump `Edition::CURRENT` to 2024
2025-03-17 14:39:10 +00:00
Lukas Wirth
facaf8b870
Merge pull request #19384 from Veykril/push-yppplzzpoymr
...
fix: Fix stale `Building CrateGraph` report
2025-03-17 11:35:31 +00:00
Lukas Wirth
a505420751
chore: Bump Edition::CURRENT
to 2024
2025-03-17 12:29:19 +01:00
Lukas Wirth
c159ac2f4b
fix: Fix stale Building CrateGraph
report
2025-03-17 12:19:33 +01:00
Lukas Wirth
64d39c1abc
Merge pull request #19329 from Shourya742/2025-03-10-add-proc-macro-api-doc
...
doc: add doc to proc-macro-api
2025-03-17 09:17:35 +00:00
Lukas Wirth
23e8d13531
Merge pull request #19355 from Veykril/push-nzknrnouutnp
...
internal: Render root syntax contexts more clearly
2025-03-16 17:30:57 +00:00
Lukas Wirth
a06aadb9f0
internal: Render root syntax contexts more clearly
2025-03-16 16:26:07 +01:00
Lukas Wirth
c28b80c321
internal: Symbol
is not PartialOrd
2025-03-16 16:06:06 +01:00
Lukas Wirth
6a637879ac
minor: Remove unnecessary allocations in function::params_display
2025-03-16 15:19:25 +01:00
Lukas Wirth
8b5816b4f5
Merge pull request #19363 from euclio/varargs-detail
...
display varargs in completion detail
2025-03-16 13:43:11 +00:00
Lukas Wirth
918740358b
Merge pull request #19354 from ChayimFriedman2/rtn-prep
...
Preparation to Return Type Notation (RTN)
2025-03-16 13:21:23 +00:00
Lukas Wirth
b5eedad8e3
refactor: Remove unnecessary Arc
2025-03-16 10:27:48 +01:00
Lukas Wirth
7edfeb9674
refactor: Remove CrateGraphBuilder::iter_mut
2025-03-16 10:24:15 +01:00
Andy Russell
e9403853c0
display varargs in completion detail
2025-03-15 16:36:14 -04:00
BenjaminBrienen
92ccf3dd8b
cargo fmt
2025-03-15 21:32:01 +01:00
BenjaminBrienen
65617851c5
fix temporary value dropped while borrowed
2025-03-15 21:32:01 +01:00
BenjaminBrienen
7535bb4661
cargo fmt
2025-03-15 21:32:01 +01:00
BenjaminBrienen
87f837cec7
fix clippy::doc_overindented_list_items
2025-03-15 21:32:01 +01:00
BenjaminBrienen
7f1912c748
cargo clippy --fix
2025-03-15 21:32:01 +01:00
BenjaminBrienen
70fc7b98c6
edition = "2024"
2025-03-15 21:32:01 +01:00
BenjaminBrienen
e70a9c5b9e
rust-version = "1.85"
2025-03-15 21:32:01 +01:00
BenjaminBrienen
aad66c7bf1
Fix 2024 syntax errors
2025-03-15 21:32:01 +01:00
Chayim Refael Friedman
71ff7fbe22
Merge pull request #19370 from DriedYellowPeach/refactor/io-result
...
refactor: Simplify by removing ? operator
2025-03-15 19:53:43 +00:00
Neil
1e3026ccb7
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
9ac80de20c
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
220d913cbc
Merge pull request #19366 from Veykril/push-mkunlxkysssr
...
chore: Remove legacy `SyntaxContextId` re-export
2025-03-15 16:25:13 +00:00
Lukas Wirth
bc05a94280
Merge pull request #19367 from Veykril/push-ryowkxkntnpo
...
chore: Drop legacy salsa
2025-03-15 16:21:20 +00:00
Lukas Wirth
02a793bd59
chore: Remove legacy SyntaxContextId
re-export
2025-03-15 17:09:17 +01:00
Lukas Wirth
029878eff9
chore: Drop legacy salsa
2025-03-15 12:02:31 -04:00
Lukas Wirth
db4ba3a991
Merge pull request #19364 from Veykril/push-uonyorwwzpzx
...
fix: Fix missing `with_durability` calls
2025-03-15 15:09:18 +00:00
Lukas Wirth
f19c416d45
fix: Fix missing with_durability
calls
2025-03-15 15:53:23 +01:00
Lukas Wirth
e3b3d9ee59
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
faf2bdde5f
Merge pull request #19356 from flodiebold/push-snpyvwuulkmw
...
fix: Avoid recursively debug printing crates
2025-03-14 18:19:05 +00:00
Florian Diebold
c1102ac703
Avoid recursively debug printing crates
2025-03-14 19:02:06 +01:00
Vishruth-Thimmaiah
53f3e6fd5f
feat: for loop to while let assist
2025-03-14 19:15:37 +05:30
Lukas Wirth
2ea09b2e47
Split variant_data
into its own query
2025-03-14 14:16:33 +01:00
Lukas Wirth
8e8d997304
Split enum variants out of enum_data
query
2025-03-14 13:32:53 +01:00
Lukas Wirth
dff1896436
Move attribute parsing out of data module
2025-03-14 13:31:41 +01:00
Lukas Wirth
12f54eec27
Split assoc items out of trait_data
/impl_data
queries
2025-03-14 13:31:41 +01:00
David Barsky
788232b355
internal: don't panic when the crate graph isn't ready #19351
2025-03-13 15:14:08 -04:00
Chayim Refael Friedman
5076ef7d9b
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
eaa0a39831
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
3fc655b239
Merge pull request #19337 from ChayimFriedman2/salsify-crate-graph-final
...
Salsify the crate graph
2025-03-12 19:17:29 +00:00