about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-01-27Back out "Remove `has_default` from `FieldId`"David Barsky-35/+64
This backs out commit 8aa6c09fcee6270c787a6f00615d76343fbe5c07.
2025-01-27Show status bar in RA outputDavid Richey-0/+4
2025-01-27fix: Properly handle CRLF line endings in the syntax tree viewGiga Bowser-76/+181
2025-01-27Add FreeBSD as a target OS for TestDir to avoid warningsVladimir Krivopalov-2/+7
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-27Merge pull request #19051 from ChayimFriedman2/fn-ptr-unsafeLukas Wirth-1/+19
fix: Report calling unsafe fn pointer as unsafe
2025-01-27Merge pull request #19050 from ChayimFriedman2/iter-selfLukas Wirth-1/+36
fix: Don't suggest `into_iter().method()` on iterators
2025-01-27Merge pull request #19049 from ChayimFriedman2/add-reference-tyLukas Wirth-16/+5
minor: Remove duplicate method from `hir::Type`
2025-01-27Merge pull request #19052 from Veykril/push-yqwutllwwyypLukas Wirth-9/+14
Prioritize formatting thread tasks in main_loop
2025-01-27Prioritize formatting thread tasks in main_loopLukas Wirth-9/+14
2025-01-27Report calling unsafe fn pointer as unsafeChayim Refael Friedman-1/+19
2025-01-27Don't suggest `into_iter().method()` on iteratorsChayim Refael Friedman-1/+36
2025-01-27Remove duplicate method from `hir::Type`Chayim Refael Friedman-16/+5
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-27Merge pull request #19047 from lnicola/rename-highlightLaurențiu Nicola-0/+14
fix: Fix syntactic highlighting for renames
2025-01-27Fix syntactic highlighting for renamesLaurențiu Nicola-0/+14
2025-01-27Merge pull request #19044 from ChayimFriedman2/deprecated-safeLukas Wirth-100/+274
fix: Fix #[rustc_deprecated_safe_2024]
2025-01-27Fix a missing standard token in semantic highlightingChayim Refael Friedman-2/+3
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-27Fix #[rustc_deprecated_safe_2024]Chayim Refael Friedman-100/+274
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-27Remove `has_default` from `FieldId`Shoyu Vanilla-64/+35
2025-01-27Fix a mistake in conditionShoyu Vanilla-2/+1
2025-01-27Add a test for field default value body as defining usage of TAITShoyu Vanilla-27/+141
2025-01-27Implement `HasResolver` and `HasModule` for `FieldId`Shoyu Vanilla-19/+20
2025-01-27Compute diagnostics of a field body iff it has oneShoyu Vanilla-22/+64
2025-01-27Merge record lit's ellipsis into pre-existing spread's variantShoyu Vanilla-34/+55
2025-01-27Handle missing fields diagnosticsShoyu Vanilla-12/+59
2025-01-27feat: Implement `default-field-values`Shoyu Vanilla-31/+647
2025-01-27Merge pull request #19036 from Veykril/push-nprltlwvryxwLukas Wirth-526/+645
Split out `ExpressionStore` from `Body`
2025-01-27Merge pull request #19037 from ChayimFriedman2/fix-other-testLukas Wirth-8/+83
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-26Support RFC 2396Chayim Refael Friedman-24/+132
AKA. target_feature 1.1, or non unsafe target_feature.
2025-01-26In completion's expand, consider recursion stop condition (when we're not ↵Chayim Refael Friedman-8/+83
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-26Add GenericDefId::StaticIdLukas Wirth-24/+46
2025-01-26Split out `ExpressionStore` from `Body`Lukas Wirth-445/+531
2025-01-26Merge pull request #19035 from rust-lang/Veykril-patch-1Lukas Wirth-12/+6
Update outdated permissions section in the README.md
2025-01-26Update outdated permissions section in the README.mdLukas Wirth-12/+6
2025-01-26Merge pull request #19034 from ChayimFriedman2/complete-hidden-variantLukas Wirth-55/+102
fix: Don't complete doc(hidden) enum variants and use trees
2025-01-26Merge pull request #19033 from ChayimFriedman2/span-1Chayim Refael Friedman-4/+4
fix: Make proc_macro span's line & column 1-indexed, as documented
2025-01-26Make proc_macro span's line & column 1-indexed, as documentedChayim Refael Friedman-4/+4
That is, make the fake number that we return 1 and not 0.
2025-01-26Don't complete doc(hidden) enum variants and use treesChayim Refael Friedman-55/+102
Also refactor the check a bit.
2025-01-25Merge pull request #19020 from ShoyuVanilla/issues-19007Lukas Wirth-35/+129
fix: Prevent infinite recursion of bounds formatting
2025-01-26fix: Prevent infinite recursion of bounds formattingShoyu Vanilla-72/+129
2025-01-25Cleanup body ast ptr defsLukas Wirth-75/+74
2025-01-25BodyCollectorLukas Wirth-77/+91
2025-01-25Combine `pat_hyigene` and `expr_hygiene`Lukas Wirth-15/+13
2025-01-25Merge pull request #19030 from Veykril/push-wuzvopyooznmLukas Wirth-1/+5
fix: Fix markdown horizontal ruler sometimes being treated as a heading
2025-01-25fix: Fix markdown horizontal ruler sometimes being treated as a headingLukas Wirth-1/+5
2025-01-25Use `strict_provenance`Lukas Wirth-39/+8
2025-01-25Skip redundant path search in `resolve_completion_edits`Lukas Wirth-50/+27
2025-01-25Merge pull request #19028 from Veykril/push-vuytpkvqzwzsLukas Wirth-20/+89
fix: Fix flyimport not filtering via stability of import path
2025-01-25Fix flyimport not filtering via stability of import pathLukas Wirth-20/+89
2025-01-25Merge pull request #19026 from Veykril/push-wrxrutptywzxLukas Wirth-48/+72
Only collect implicit visibile use symbols if they have renames
2025-01-25Only collect implicit visibile use symbols if they have renamesLukas Wirth-48/+72
Otherwise this will pollute the index too much with unnecessary symbols