about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/hir
AgeCommit message (Collapse)AuthorLines
2025-01-27Remove duplicate method from `hir::Type`Chayim Refael Friedman-12/+1
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-27Fix #[rustc_deprecated_safe_2024]Chayim Refael Friedman-21/+53
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-38/+26
2025-01-27Compute diagnostics of a field body iff it has oneShoyu Vanilla-12/+35
2025-01-27Merge record lit's ellipsis into pre-existing spread's variantShoyu Vanilla-1/+1
2025-01-27feat: Implement `default-field-values`Shoyu Vanilla-4/+62
2025-01-27Merge pull request #19036 from Veykril/push-nprltlwvryxwLukas Wirth-16/+24
Split out `ExpressionStore` from `Body`
2025-01-26Support RFC 2396Chayim Refael Friedman-6/+24
AKA. target_feature 1.1, or non unsafe target_feature.
2025-01-26Add GenericDefId::StaticIdLukas Wirth-1/+7
2025-01-26Split out `ExpressionStore` from `Body`Lukas Wirth-15/+17
2025-01-25Merge pull request #19026 from Veykril/push-wrxrutptywzxLukas Wirth-48/+39
Only collect implicit visibile use symbols if they have renames
2025-01-25Only collect implicit visibile use symbols if they have renamesLukas Wirth-48/+39
Otherwise this will pollute the index too much with unnecessary symbols
2025-01-24Merge pull request #19018 from Veykril/push-wxqqunxwrplyLukas Wirth-2/+2
internal: Record the use tree index in glob imports
2025-01-24Merge pull request #18991 from Veykril/push-rmqmnrymwmozLukas Wirth-15/+26
Keep already computed inlay hint properties instead of late resolving them
2025-01-24Record the use tree index in glob importsLukas Wirth-2/+2
2025-01-24Merge pull request #19016 from Veykril/push-moqnsytyrupuLukas Wirth-35/+29
fix: Fix `ItemScope` not recording glob imports
2025-01-24Fix `ItemScope` not recording glob importsLukas Wirth-35/+29
This caused us other code to incorrectly assume in dealing with a declaration when in fact it was dealing with a glob imported definition
2025-01-21Fix Param::as_local treating closures wrongLukas Wirth-15/+26
2025-01-20Goto `Display::fmt` when invoked on `to_string`Lukas Wirth-0/+2
2025-01-20Bring back goto def redirect for parse -> FromStrLukas Wirth-1/+5
2025-01-20Move dual blanket impl logic from source analyzer to goto_defLukas Wirth-76/+23
2025-01-20Merge pull request #18967 from Veykril/push-pwonkmwqmmolLukas Wirth-112/+182
Properly record meaningful imports as re-exports in symbol index
2025-01-20Merge pull request #18934 from 1hakusai1/goto_definition_from_intoLukas Wirth-0/+78
feat: Add the ability to jump from `into` to `from` definitions
2025-01-20Fix import search not discarding rawnessLukas Wirth-7/+4
2025-01-20Preserve impl assoc names in ImplDataLukas Wirth-59/+47
2025-01-20Vec -> Box<[_]>Lukas Wirth-2/+2
2025-01-20Properly record meaningful imports as re-exports in symbol indexLukas Wirth-63/+148
2025-01-20Use Semantics::resolve_method_call_as_callable to find implementation1hakusai1-0/+78
2025-01-16Merge pull request #18951 from Veykril/push-zpvunsvlpuxtLukas Wirth-0/+1
Add missing `#[rust_analyzer::rust_fixture]` annotations
2025-01-16Generalize some type walking in hover type actionsLukas Wirth-0/+1
2025-01-16Minor docs improvementLukas Wirth-0/+1
2025-01-16Merge pull request #18927 from ChayimFriedman2/skip-iter-awaitLukas Wirth-12/+41
feat: Add smart completions that skip `await` or `iter()` and `into_iter()`
2025-01-15Add smart completions that skip `await` or `iter()` and `into_iter()`Chayim Refael Friedman-12/+41
E.g. complete `await.foo()`.
2025-01-15Merge pull request #18940 from Veykril/push-ulowqkpprslqLukas Wirth-40/+36
fix: Fix semantics not always correctly caching file roots
2025-01-15fix: Fix semantics not always correctly caching file rootsLukas Wirth-40/+36
2025-01-15Early exit in search properlyLukas Wirth-1/+1
2025-01-10Improve hover module path renderingLukas Wirth-0/+4
2025-01-10Merge pull request #18902 from Veykril/push-znlsxykqrkooLukas Wirth-10/+33
internal: Add Definition::Crate
2025-01-10internal: Add Definition::CrateLukas Wirth-10/+33
This is its own thing so it should be handled specifically where possible
2025-01-10Remove two hir reexportsChayim Refael Friedman-6/+11
2025-01-09Merge pull request #18861 from ChayimFriedman2/await-editionLukas Wirth-8/+8
fix: Make edition per-token, not per-file
2025-01-09Make edition per-token, not per-fileChayim Refael Friedman-8/+8
More correctly, *also* per-token. Because as it turns out, while the top-level edition affects parsing (I think), the per-token edition affects escaping of identifiers/keywords.
2025-01-08fix: Fix `env`/`option_env` macro check disregarding macro_rules definitionsLukas Wirth-4/+13
2025-01-07Merge pull request #18853 from ChayimFriedman2/no-completionLaurențiu Nicola-5/+32
Fix case where completion inside macro that expands to `#[test]` was unavailable
2025-01-06Fix case where completion inside macro that expands to `#[test]` was unavailableChayim Refael Friedman-5/+32
We ignore `#[test]` in the def map, so that's why it failed.
2025-01-06minor: New clippy lintsLukas Wirth-6/+5
2025-01-03minor: Encode TraitData bools as bitflagsLukas Wirth-6/+9
2025-01-01Merge pull request #18179 from ChayimFriedman2/omit-trait-completionLukas Wirth-22/+124
feat: Allow excluding specific traits from completion
2025-01-01CleanupLukas Wirth-67/+46
2025-01-01Simplify completion config path resolutionsLukas Wirth-0/+5