许杰友 Jieyou Xu (Joe)
905ddf8cd8
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
a52ffa7068
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
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
Moulins
c64ed1e187
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
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
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
Alice Ryhl
4d0c1ee1bd
Delete tuple unsizing
2025-02-27 10:26:33 +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
Giga Bowser
b4f2d62952
internal: Improve reporting of intersecting changes
2025-02-25 11:46:45 -05:00
Chayim Refael Friedman
7c5524c854
Disable typos checker for the target feature names
2025-02-25 05:02:17 +02:00
Chayim Refael Friedman
87ed04bac0
Support target features implications in target_feature 1.1
...
We vendor the list of implications, which isn't nice, but t-compiler doesn't want to make rustc_target available to us.
2025-02-25 04:50:26 +02:00
Giga Bowser
6739652af7
minor: Add tabstop to impl body in generate_trait_impl
assist
2025-02-24 13:58:34 -05:00
Lukas Wirth
f6edb7178e
Merge pull request #19171 from ShoyuVanilla/migrate-de-morgan-assist
...
internal: Migrate `apply_demorgan` to `SyntaxEditor`
2025-02-24 13:57:56 +00:00
Lukas Wirth
93bd36dfb9
Merge pull request #18987 from ChayimFriedman2/drop-glue
...
feat: Calculate drop glue and show it on hover
2025-02-24 13:52:17 +00:00
Shoyu Vanilla
a0b9931832
Add take()
method to SyntaxEditor
2025-02-24 22:42:57 +09:00
Shoyu Vanilla
bf0c3944f8
Migrate apply_demorgan
to SyntaxEditor
2025-02-24 22:41:53 +09:00
Shoyu Vanilla
f06f1b81bb
Migrate some leftovers in add_missing_match_arms
2025-02-24 22:41:52 +09:00
Lukas Wirth
e2c281aaae
Merge pull request #19219 from Veykril/push-rvosplwpwqqt
...
Vendor `always-assert` into `stdx`
2025-02-24 13:15:39 +00:00