about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
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
2025-01-25Merge pull request #18973 from ThouCheese/feat/nice-nichesLukas Wirth-2/+85
Make niches into nices
2025-01-25Merge pull request #19023 from Wilfred/sequence_type_namesLukas Wirth-10/+93
minor: Suggest better names when a type is a sequence
2025-01-24manual: Convert to mdbookWilfred Hughes-2686/+2836
Split manual.adoc into markdown files, one for each chapter. For the parts of the manual that are generated from source code doc comments, update the comments to use markdown syntax and update the code generators to write to `generated.md` files. For the weekly release, stop copying the .adoc files to the `rust-analyzer/rust-analyzer.github.io` at release time. Instead, we'll sync the manual hourly from this repository. See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/226 for the sync. This PR should be merged first, and that PR needs to be merged before the next weekly release. This change is based on #15795, but rebased and updated. I've also manually checked each page for markdown syntax issues and fixed any I encountered. Co-authored-by: Lukas Wirth <lukastw97@gmail.com> Co-authored-by: Josh Rotenberg <joshrotenberg@gmail.com>
2025-01-24minor: Suggest better names when a type is a sequenceWilfred Hughes-10/+93
Previously, we'd suggest a type of `vec` for a value of type `Vec<T>`, which is rarely what the user wants. We also had no suggestions for values of type `&[T]`. Instead, try to pluralise the inner type name, and fall back to `items`.
2025-01-24Explicitly add buildfiles when constructing ProjectFoldersDavid Richey-21/+38
2025-01-24Merge pull request #19018 from Veykril/push-wxqqunxwrplyLukas Wirth-95/+112
internal: Record the use tree index in glob imports
2025-01-24Merge pull request #18991 from Veykril/push-rmqmnrymwmozLukas Wirth-322/+433
Keep already computed inlay hint properties instead of late resolving them