Thalia Archibald
0811ca0a61
Use size_of from the prelude instead of imported
...
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.
These functions were added to all preludes in Rust 1.80.
2025-03-05 00:48:44 -08:00
Thalia Archibald
0aa623e108
minicore: Add size_of to prelude and add rust_2024 prelude
2025-03-05 00:30:38 -08:00
Laurențiu Nicola
3c394c61b8
Merge pull request #19265 from Shourya742/2025-03-01-add-dangling-dyn-diagnostic
...
feat: Add diagnostic for dangling dyn and impl
2025-03-05 05:58:31 +00:00
Laurențiu Nicola
1d6f53e117
Bump minimum supported toolchain to 1.82
2025-03-03 16:03:06 +02:00
Lukas Wirth
03f90b0afa
Merge pull request #19261 from Veykril/push-rnqlyrvqpols
...
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03 11:51:07 +00:00
Lukas Wirth
b685ada098
Merge pull request #19243 from Veykril/push-qrrqsywkwyzp
...
Allow unsetting default cfgs
2025-03-03 11:42:40 +00:00
Lukas Wirth
8ff0b67711
Merge pull request #19244 from Veykril/push-nmnrnlysvyvk
...
Warn when the used toolchain looks too old for rust-analyzer
2025-03-03 11:41:12 +00:00
Lukas Wirth
4ad546f6a6
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03 12:35:53 +01:00
bit-aloo
af959f9031
Add dangling impl
...
- Adds dangling impl diagnostics
- Rename validation test from dangling_impl to dangling_iml_ref
2025-03-03 15:58:33 +05:30
Laurențiu Nicola
071eda7d91
Merge pull request #19269 from lnicola/sync-from-rust
...
minor: sync from downstream
2025-03-03 07:00:48 +00:00
Laurențiu Nicola
2244c99b69
Merge from rust-lang/rust
2025-03-03 08:38:46 +02:00
Chayim Refael Friedman
9e014a0e61
Merge pull request #19226 from Shourya742/2025-02-25-fix-completion-ref-matching
...
completion-ref-matching
2025-03-03 02:37:00 +00:00
Michael Davis
c9fdc48e86
Add identifier
to pull diagnostic LSP capabilities
...
This field in the server capabilities instructs the client to maintain
the diagnostics received from a `textDocument/diagnostic` pull request
as a separate set from other diagnostics: namely those sent with classic
"push" diagnostics, `textDocument/publishDiagnostic`. rust-analyzer
emits "native" diagnostics (computed by rust-analyzer itself) in pull
diagnostics and separately emits cargo-based diagnostics with push, so
push and pull diagnostics should be different sets. Setting this field
instructs the client to avoid clearing push diagnostics when new pull
diagnostics arrive and vice versa.
2025-03-02 09:27:45 -05:00
bit-aloo
0b97ae26bf
add diagnostic for dangling impl
2025-03-02 19:42:42 +05:30
bit-aloo
afe6e5ba0f
add diagnostic for dangling dyn
2025-03-02 19:41:39 +05:30
Lukas Wirth
0f4e6104e0
Normalize some assist names
2025-03-02 09:09:12 +01:00
Lukas Wirth
7273d714af
Merge pull request #19259 from Veykril/push-skmvrmtorqso
...
Add flip or-pattern assist
2025-03-02 07:41:42 +00:00
Lukas Wirth
1ce1f087da
Merge pull request #19253 from ShoyuVanilla/migrate-convert-bool-then
...
internal: Migrate `convert_bool_then` to `SyntaxEditor`
2025-03-02 07:21:04 +00:00
Lukas Wirth
f7569a4426
Add flip or-pattern assist
2025-03-02 08:04:27 +01:00
Lukas Wirth
76567ee28d
Merge pull request #19251 from Veykril/push-tkmpqtzxynxk
...
Remove syntax editing from parenthesis computation
2025-03-01 17:46:07 +00:00
Lukas Wirth
570c6adcd3
Remove syntax editing from parenthesis computation
2025-03-01 18:32:04 +01:00
Lukas Wirth
716e9fdb8d
Fix test_keyword_highlighting
test
2025-03-01 18:29:47 +01:00
Lukas Wirth
8f319240b4
Cleanup string handling in syntax highlighting
2025-03-01 17:44:29 +01:00
Lukas Wirth
9200f77068
More precise macro modifiers for syntax highlighting
2025-03-01 17:23:51 +01:00
Lukas Wirth
487d682204
Cleanup highlighting macro-def handling
2025-03-01 16:54:40 +01:00
Shoyu Vanilla
37822d5917
Migrate convert_bool_then
to SyntaxEditor
...
Update assist docs
2025-03-01 13:12:15 +09:00
Ralf Jung
5377cfb472
rename BackendRepr::Vector → SimdVector
2025-02-28 17:17:45 +01:00
Lukas Wirth
e92dc3fd80
Have inline_local_variable use precedence calculation for parentheses
2025-02-28 11:03:33 +01:00
Lukas Wirth
2c4ef382d6
Merge pull request #19249 from Veykril/push-noosrywrsuvn
...
Fix prefix adjustment hints unnecessarily introducing parens
2025-02-28 09:33:36 +00:00
Lukas Wirth
f655062cb0
Fix prefix adjustment hints unnecessarily introducing parens
2025-02-28 10:18:10 +01:00
bit-aloo
dcb25b1a8c
add test
2025-02-28 10:03:03 +05:30
bit-aloo
09315ef319
Avoid suggesting redundant borrowing in completion results
2025-02-28 10:02:55 +05:30
Nicholas Crothers
15207a0474
Add anchor for intra-doc links to associated items
2025-02-27 16:39:07 -06:00
Lukas Wirth
7ab7633e91
Warn when the used toolchain looks too old for rust-analyzer
2025-02-27 17:59:39 +01:00
Lukas Wirth
5e18ad0770
Allow unsetting default cfgs
2025-02-27 17:34:29 +01:00
BenjaminBrienen
07bf55f017
ignore another test that fails on windows
2025-02-27 16:09:00 +01:00
BenjaminBrienen
5741189750
ignore doc test that only fails on windows
2025-02-27 15:57:08 +01:00
BenjaminBrienen
b19ef6b046
fix doc tests
2025-02-27 14:58:46 +01:00
BenjaminBrienen
bd7375a58f
enable doctest
2025-02-27 14:58:46 +01:00
Lukas Wirth
d81341372b
Fix sysroot crate-graph construction not mapping crate-ids for proc-macros
2025-02-27 13:20:19 +01:00
Lukas Wirth
e50bc18182
Merge pull request #19096 from darichey/rust-project-sysroot
...
Allow rust-project.json to specify sysroot workspace
2025-02-27 11:22:41 +00:00
LuuuXXX
6d24962cb8
Cofigurate out ohos target to avoid compilation crashes
2025-02-27 11:43:03 +08:00
David Richey
18a678e693
Drop support for stitched sysroot
2025-02-26 14:18:52 -06:00
David Richey
ca5a35e97f
Allow rust-project.json to specify sysroot workspace
2025-02-26 14:18:48 -06:00
Lukas Wirth
95286193e0
Merge pull request #19225 from Giga-Bowser/remove-assists
...
internal: Migrate some low-hanging `remove_*` assists to `SyntaxEditor`
2025-02-26 11:54:31 +00:00
Chayim Refael Friedman
2f5e8d7879
Merge pull request #19204 from kazatsuyu/allow-package-specific-feature
...
Allow "package/feature" format feature flag
2025-02-26 06:01:12 +00:00
Giga Bowser
f155aef64d
internal: Migrate remove_unused_param
assist to SyntaxEditor
2025-02-25 11:52:13 -05:00
Giga Bowser
93c9f06870
fix: Properly handle removals in SyntaxEditor
2025-02-25 11:52:13 -05:00
Giga Bowser
6dda2e81c6
internal: Migrate remove_parentheses
assist to SyntaxEditor
2025-02-25 11:52:13 -05:00
Giga Bowser
daca6b88c4
internal: Migrate remove_mut
assist to SyntaxEditor
2025-02-25 11:52:13 -05:00