Lukas Wirth
8e68c3fc62
Disable Receiver based autoderef temporarily
2025-01-28 14:54:02 +01:00
Chayim Refael Friedman
165f2760ca
Merge pull request #19055 from vkrivopalov/fix-testdir-unused-variable-warning-on-freebsd
...
Add FreeBSD as a target OS for TestDir to avoid warnings
2025-01-27 20:16:57 +00:00
Vladimir Krivopalov
3dd95e3767
Add FreeBSD as a target OS for TestDir to avoid warnings
...
Currently, running rust-analyzer tests on FreeBSD produces an "unused
variable" warning. The code is fully compatible with FreeBSD and doesn't
have to be omitted.
Signed-off-by: Vladimir Krivopalov <vladimir@krivopalov.ru>
2025-01-27 14:53:56 -05:00
Lukas Wirth
cadc468b45
Merge pull request #19051 from ChayimFriedman2/fn-ptr-unsafe
...
fix: Report calling unsafe fn pointer as unsafe
2025-01-27 17:42:06 +00:00
Lukas Wirth
da33e7ce8a
Merge pull request #19050 from ChayimFriedman2/iter-self
...
fix: Don't suggest `into_iter().method()` on iterators
2025-01-27 17:41:02 +00:00
Lukas Wirth
8ed922785e
Merge pull request #19049 from ChayimFriedman2/add-reference-ty
...
minor: Remove duplicate method from `hir::Type`
2025-01-27 17:40:09 +00:00
Lukas Wirth
30b606332c
Merge pull request #19052 from Veykril/push-yqwutllwwyyp
...
Prioritize formatting thread tasks in main_loop
2025-01-27 17:40:07 +00:00
Lukas Wirth
26c57086f6
Prioritize formatting thread tasks in main_loop
2025-01-27 18:23:42 +01:00
Chayim Refael Friedman
1ba894350d
Report calling unsafe fn pointer as unsafe
2025-01-27 18:57:31 +02:00
Chayim Refael Friedman
b4508dc406
Don't suggest into_iter().method() on iterators
2025-01-27 18:48:20 +02:00
Chayim Refael Friedman
78feee84c2
Remove duplicate method from hir::Type
...
I added it by mistake in #18927 .
I chose to keep the method as not static, because it's more comfortable, and keep the name `add_reference()` and not `reference()`, because it is clearer and better matches `strip_reference[s]()`.
2025-01-27 18:40:01 +02:00
Laurențiu Nicola
d60afecd11
Merge pull request #19047 from lnicola/rename-highlight
...
fix: Fix syntactic highlighting for renames
2025-01-27 14:33:04 +00:00
Laurențiu Nicola
5f2072c188
Fix syntactic highlighting for renames
2025-01-27 15:51:51 +02:00
Lukas Wirth
0fe9d77195
Merge pull request #19044 from ChayimFriedman2/deprecated-safe
...
fix: Fix #[rustc_deprecated_safe_2024]
2025-01-27 13:29:22 +00:00
Lukas Wirth
238d7bd1e4
Merge pull request #19045 from ChayimFriedman2/missing-token
...
fix: Fix a missing standard token in semantic highlighting
2025-01-27 13:23:42 +00:00
Chayim Refael Friedman
86d5e295d6
Fix a missing standard token in semantic highlighting
...
That was used as a fallback, causing a panic when the fallback was chosen.
I also made sure this won't happen again by guaranteeing in the macro generating the tokens that they all exist.
2025-01-27 15:08:00 +02:00
Chayim Refael Friedman
9a0504b716
Fix #[rustc_deprecated_safe_2024]
...
It should be considered by the edition of the caller, not the callee.
Technically we still don't do it correctly - we need the span of the method name (if it comes from a macro), but we don't keep it and this is good enough for now.
2025-01-27 14:35:20 +02:00
Lukas Wirth
ad0aea4323
Merge pull request #19001 from ShoyuVanilla/default-field-values
...
feat: Implement `default-field-values`
2025-01-27 11:45:07 +00:00
Shoyu Vanilla
c093db0ba1
Remove has_default from FieldId
2025-01-27 19:41:58 +09:00
Shoyu Vanilla
e4e7c95048
Fix a mistake in condition
2025-01-27 19:41:58 +09:00
Shoyu Vanilla
ec89b7d293
Add a test for field default value body as defining usage of TAIT
2025-01-27 19:41:58 +09:00
Shoyu Vanilla
c7463fe743
Implement HasResolver and HasModule for FieldId
2025-01-27 19:41:58 +09:00
Shoyu Vanilla
faeaf4ad21
Compute diagnostics of a field body iff it has one
2025-01-27 19:41:57 +09:00
Shoyu Vanilla
262216079a
Merge record lit's ellipsis into pre-existing spread's variant
2025-01-27 19:41:54 +09:00
Shoyu Vanilla
5ca9f522dd
Handle missing fields diagnostics
2025-01-27 19:38:39 +09:00
Shoyu Vanilla
d18afd394c
feat: Implement default-field-values
2025-01-27 19:38:35 +09:00
Lukas Wirth
1711a19dbf
Merge pull request #19036 from Veykril/push-nprltlwvryxw
...
Split out `ExpressionStore` from `Body`
2025-01-27 07:54:44 +00:00
Lukas Wirth
6db1411ae0
Merge pull request #19037 from ChayimFriedman2/fix-other-test
...
fix: In completion's expand, consider recursion stop condition (when we're not inside a macro call anymore) *after* the recursive call instead of before it
2025-01-27 07:37:27 +00:00
Lukas Wirth
90516478a7
Merge pull request #19038 from ChayimFriedman2/unused-unsafe
...
feat: Support RFC 2396
2025-01-27 07:36:15 +00:00
Chayim Refael Friedman
5de2cd4b13
Support RFC 2396
...
AKA. target_feature 1.1, or non unsafe target_feature.
2025-01-26 23:31:58 +02:00
Chayim Refael Friedman
1360b4c3a1
In completion's expand, consider recursion stop condition (when we're not inside a macro call anymore) *after* the recursive call instead of before it
...
This is because our detection is imperfect, and miss some cases such as an impersonating `test` macro, so we hope we'll expand successfully in this case.
2025-01-26 19:08:10 +02:00
Lukas Wirth
bdebd866fb
Add GenericDefId::StaticId
2025-01-26 11:07:54 +01:00
Lukas Wirth
c679d56205
Split out ExpressionStore from Body
2025-01-26 11:02:00 +01:00
Lukas Wirth
a7cbe4bedd
Merge pull request #19035 from rust-lang/Veykril-patch-1
...
Update outdated permissions section in the README.md
2025-01-26 07:12:02 +00:00
Lukas Wirth
9ad59150e6
Update outdated permissions section in the README.md
2025-01-26 07:57:08 +01:00
Lukas Wirth
176852ba85
Merge pull request #19034 from ChayimFriedman2/complete-hidden-variant
...
fix: Don't complete doc(hidden) enum variants and use trees
2025-01-26 06:47:34 +00:00
Chayim Refael Friedman
bbf9ff69c9
Merge pull request #19033 from ChayimFriedman2/span-1
...
fix: Make proc_macro span's line & column 1-indexed, as documented
2025-01-26 06:41:54 +00:00
Chayim Refael Friedman
3149e0ff83
Make proc_macro span's line & column 1-indexed, as documented
...
That is, make the fake number that we return 1 and not 0.
2025-01-26 08:27:24 +02:00
Chayim Refael Friedman
9ae0e7bb25
Don't complete doc(hidden) enum variants and use trees
...
Also refactor the check a bit.
2025-01-26 00:13:11 +02:00
Lukas Wirth
2d94c69c6b
Merge pull request #19020 from ShoyuVanilla/issues-19007
...
fix: Prevent infinite recursion of bounds formatting
2025-01-25 19:03:54 +00:00
Shoyu Vanilla
9691d2201c
fix: Prevent infinite recursion of bounds formatting
2025-01-26 03:37:00 +09:00
Lukas Wirth
d9c58c8636
Cleanup body ast ptr defs
2025-01-25 14:47:16 +01:00
Lukas Wirth
8e7a338165
BodyCollector
2025-01-25 14:43:22 +01:00
Lukas Wirth
b46775a5f4
Combine pat_hyigene and expr_hygiene
2025-01-25 14:28:43 +01:00
Lukas Wirth
c1db5da2fe
Merge pull request #19030 from Veykril/push-wuzvopyooznm
...
fix: Fix markdown horizontal ruler sometimes being treated as a heading
2025-01-25 13:22:39 +00:00
Lukas Wirth
a5cd6c0756
fix: Fix markdown horizontal ruler sometimes being treated as a heading
2025-01-25 14:07:54 +01:00
Lukas Wirth
80615d963d
Merge pull request #18909 from Veykril/push-rrpprwwzttkt
...
Use `strict_provenance`
2025-01-25 13:06:26 +00:00
Lukas Wirth
105ea3bc1d
Use strict_provenance
2025-01-25 13:47:07 +01:00
Lukas Wirth
a91b571b5f
Merge pull request #19029 from Veykril/push-wklzwzqvkrou
...
internal: Skip redundant path search in `resolve_completion_edits`
2025-01-25 12:17:22 +00:00
Lukas Wirth
5d94c97ddb
Skip redundant path search in resolve_completion_edits
2025-01-25 13:03:01 +01:00