Commit graph

2619 commits

Author SHA1 Message Date
Eric Huss
a78d1b092c Update stdarch 2025-03-06 11:11:55 -08:00
许杰友 Jieyou Xu (Joe)
257b4947ed
Rollup merge of #137728 - Darksonn:no-tuple-unsize, r=oli-obk
Remove unsizing coercions for tuples

See https://github.com/rust-lang/rust/issues/42877#issuecomment-2686010847 and below comments for justification.

Tracking issue: #42877
Fixes: #135217
2025-03-05 21:46:44 +08:00
Matthias Krüger
566f34c75a
Rollup merge of #137921 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer`

r? `@ghost`
2025-03-03 20:47:14 +01:00
Laurențiu Nicola
015e81d08f
Merge pull request #19269 from lnicola/sync-from-rust
minor: sync from downstream
2025-03-03 07:00:48 +00:00
Laurențiu Nicola
24c480e350 Bump rustc crates 2025-03-03 08:43:57 +02:00
Laurențiu Nicola
dd3a5f9a64 Merge from rust-lang/rust 2025-03-03 08:38:46 +02:00
Laurențiu Nicola
969868ba30 Preparing for merge from rust-lang/rust 2025-03-03 08:38:14 +02:00
Chayim Refael Friedman
c6a7251c22
Merge pull request #19226 from Shourya742/2025-02-25-fix-completion-ref-matching
completion-ref-matching
2025-03-03 02:37:00 +00:00
Laurențiu Nicola
a43a5f9aef
Merge pull request #19266 from the-mikedavis/lsp-pull-diagnostics-identifier
Add `identifier` to pull diagnostic LSP capabilities
2025-03-02 14:51:59 +00:00
Michael Davis
1c00d8ffd6
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
Laurențiu Nicola
6c1e5b4edb Fix transparent diagnostics 2025-03-02 16:05:59 +02:00
Moulins
cbe32a7647 Remove layouting dead code for non-array SIMD types.
These aren't supported anymore, and are already rejected in type checking.
2025-03-02 12:50:14 +01:00
Lukas Wirth
768749f41d
Merge pull request #19259 from Veykril/push-skmvrmtorqso
Add flip or-pattern assist
2025-03-02 07:41:42 +00:00
Lukas Wirth
7d8e95806c
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
1b85befbd9 Add flip or-pattern assist 2025-03-02 08:04:27 +01:00
Lukas Wirth
e6a0fc58ec
Merge pull request #19251 from Veykril/push-tkmpqtzxynxk
Remove syntax editing from parenthesis computation
2025-03-01 17:46:07 +00:00
Lukas Wirth
629baf217c Remove syntax editing from parenthesis computation 2025-03-01 18:32:04 +01:00
Lukas Wirth
28a5eeb157 Fix test_keyword_highlighting test 2025-03-01 18:29:47 +01:00
Lukas Wirth
497f14013c Cleanup string handling in syntax highlighting 2025-03-01 17:44:29 +01:00
Lukas Wirth
b0e3526f32 More precise macro modifiers for syntax highlighting 2025-03-01 17:23:51 +01:00
Lukas Wirth
08eeb8f3b2 Cleanup highlighting macro-def handling 2025-03-01 16:54:40 +01:00
Shoyu Vanilla
dfb2e3566d Migrate convert_bool_then to SyntaxEditor
Update assist docs
2025-03-01 13:12:15 +09:00
Ralf Jung
aac65f562b rename BackendRepr::Vector → SimdVector 2025-02-28 17:17:45 +01:00
Lukas Wirth
ff7de58156 Have inline_local_variable use precedence calculation for parentheses 2025-02-28 11:03:33 +01:00
Lukas Wirth
fd1f2e3528
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
637dbe56fa Fix prefix adjustment hints unnecessarily introducing parens 2025-02-28 10:18:10 +01:00
Lukas Wirth
bd8b58d7ec
Merge pull request #19246 from ncrothers/add-anchor-for-associated-items
Add anchor for intra-doc links to associated items
2025-02-28 06:32:53 +00:00
bit-aloo
2071cc27f2
add test 2025-02-28 10:03:03 +05:30
bit-aloo
73488449c5
Avoid suggesting redundant borrowing in completion results 2025-02-28 10:02:55 +05:30
Nicholas Crothers
af0c8b7f25 Add anchor for intra-doc links to associated items 2025-02-27 16:39:07 -06:00
BenjaminBrienen
d6f5377826 Update Node.js, vscode, and ts deps 2025-02-27 20:53:48 +01:00
BenjaminBrienen
1b6c4b7770 ignore another test that fails on windows 2025-02-27 16:09:00 +01:00
BenjaminBrienen
0404156654 ignore doc test that only fails on windows 2025-02-27 15:57:08 +01:00
BenjaminBrienen
df903a55dd fix doc tests 2025-02-27 14:58:46 +01:00
BenjaminBrienen
8c16ded966 enable doctest 2025-02-27 14:58:46 +01:00
Lukas Wirth
cabb08ded5 Fix sysroot crate-graph construction not mapping crate-ids for proc-macros 2025-02-27 13:20:19 +01:00
Laurențiu Nicola
d4b92f4b68
Merge pull request #19230 from lnicola/zig
internal: set up Zig on CI and start using it in rust-analyzer
2025-02-27 11:34:41 +00:00
Lukas Wirth
e162475e7c
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
Alice Ryhl
44cccae02a Delete tuple unsizing 2025-02-27 10:26:33 +00:00
LuuuXXX
dae664d09a Cofigurate out ohos target to avoid compilation crashes 2025-02-27 11:43:03 +08:00
David Richey
5109c0b9e4 Drop support for stitched sysroot 2025-02-26 14:18:52 -06:00
David Richey
faaba55be1 Allow rust-project.json to specify sysroot workspace 2025-02-26 14:18:48 -06:00
Laurențiu Nicola
444ce09d53
Merge pull request #19220 from Shourya742/2025-02-24-nit-setup-doc
doc: remove nit from setup.md
2025-02-26 15:31:24 +00:00
Laurențiu Nicola
fae88f2ab5 Use cargo zigbuild for releases 2025-02-26 14:16:09 +02:00
Lukas Wirth
aa32933982
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
3b4e268d81
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
6e6e7e9669 internal: Migrate remove_unused_param assist to SyntaxEditor 2025-02-25 11:52:13 -05:00
Giga Bowser
1d5f831ffc fix: Properly handle removals in SyntaxEditor 2025-02-25 11:52:13 -05:00
Giga Bowser
8036e841b0 internal: Migrate remove_parentheses assist to SyntaxEditor 2025-02-25 11:52:13 -05:00
Giga Bowser
cac5153961 internal: Migrate remove_mut assist to SyntaxEditor 2025-02-25 11:52:13 -05:00