about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2025-03-10Merge pull request #19314 from snprajwal/variantdef-implLukas Wirth-1/+68
fix(hir): `VariantDef` is `impl HasSource`
2025-03-10Merge pull request #19316 from snprajwal/git-commit-ecLukas Wirth-0/+3
fix: do not apply editorconfig to git commit msg
2025-03-10Merge pull request #19252 from flodiebold/fix-fixup-delimitersLukas Wirth-88/+105
Fix syntax fixup producing invalid punctuation
2025-03-10Merge pull request #19232 from ShoyuVanilla/issue-19196Lukas Wirth-12/+59
Bump chalk for built-in supports of async closures
2025-03-09Rank ADT constructors as constructors for completion scoringLukas Wirth-12/+102
2025-03-09fix: Prevent wrong invocations of `needs_parens_in` with non-ancestral "parent"sShoyu Vanilla-17/+120
2025-03-09internal: Migrate `inline_local_variable` to `SyntaxEditor`Shoyu Vanilla-32/+55
2025-03-09Bump chalk for built-in supports of async closuresShoyu Vanilla-14/+61
2025-03-08Generated doc update¨Florian-2/+2
2025-03-08Fix syntax fixup producing invalid punctuation¨Florian-88/+105
Fixes #19206. Fixes #18244.
2025-03-08Use `rustc_abi` code for SIMD layout in rust-analyzerMoulins-39/+7
2025-03-08Remove most manual LayoutData creations and move them to `rustc_abi`Moulins-78/+20
...either as: - methods on LayoutCalculator, for faillible operations; - constructors on LayoutData, for infaillible ones.
2025-03-08fix: do not apply editorconfig to git commit msgPrajwal S N-0/+3
The `max_line_length` property was set to 100 for all filetypes, which led to git commit messages being wrapped at 100 characters instead of the usual 75. This introduces an exception for the special file used by git to write commit messages. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-08fix(hir): `VariantDef` is `impl HasSource`Prajwal S N-3/+70
A new syntax node `ast::VariantDef` has been introduced to map between the HIR node and the AST. The files have been updated with `cargo test -p xtask`. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-07Remove explicit error message when build.rs failsAli Bektas-3/+3
2025-03-07Log build script error output in `load_cargo::load_workspace_at`Arthur Baars-0/+8
2025-03-07Merge pull request #19308 from Veykril/push-rnrxutwlvmlyLukas Wirth-23/+1174
Move loaded project MSRV back to 1.78, show notification for the warning
2025-03-07Pop up a notification for the MSRV project loading warningLukas Wirth-16/+29
2025-03-07Move project MSRV back to 1.78Lukas Wirth-7/+1145
2025-03-07Refactor relevance scoring to use a named constant BASE_SCORETongjun Gao-3/+5
Replace magic number with a named constant for improved readability and maintainability of the scoring logic
2025-03-07Fix logical error in relevance scoring implementationTongjun Gao-3/+3
2025-03-07Mark `rust-analyzer.showSyntaxTree` config option as requiring server restartChayim Refael Friedman-0/+1
We register the provider when we start the server. It confused me why I set the option and it didn't work, so probably better to have it hint people.
2025-03-06Update stdarchEric Huss-9/+15
2025-03-06Warn the user when a rename will change the meaning of the programChayim Refael Friedman-59/+509
Specifically, when a rename of a local will change some code that refers it to refer another local, or some code that refer another local to refer to it. We do it by introducing a dummy edit with an annotation. I'm not a fond of this approach, but I don't think LSP has a better way.
2025-03-06Use correct crate for trait env in `render_const_scalar()`Chayim Refael Friedman-5/+7
2025-03-06Pass the target crate in `HirFormatter`Chayim Refael Friedman-499/+824
This is required to format evaluated consts, because we need trait env, and it needs the crate (currently it uses the last crate in topological order, which is wrong, the next commit will fix that).
2025-03-06Normalize projections in evaluated const display and layout calculationChayim Refael Friedman-0/+39
2025-03-06Merge pull request #19290 from aibaars/patch-1Lukas Wirth-1/+17
Add warning and debug information when `cargo metadata` fails
2025-03-06Change `%e` to `?e` to include detailed error messageArthur Baars-2/+1
2025-03-06Merge pull request #19295 from alibektas/rust_analyzer_run_on_cargo_tomlLukas Wirth-6/+23
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06Adjust relevance scoring threshold to consistent with existing implementationsTongjun Gao-1/+1
2025-03-06fix: Make RustAnalyzer:Run available in manifest fileAli Bektas-6/+23
2025-03-05Show when build scripts fail what the errors wereAli Bektas-2/+3
2025-03-05Merge pull request #19292 from Veykril/push-zonnrrlosqmvLukas Wirth-6/+4
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05Merge pull request #19279 from Natural-selection1/masterLukas Wirth-1/+51
Improve keyword completion for 'let' and 'let mut'
2025-03-05Fix syntax highlightingg punct filtering ignoring modsLukas Wirth-6/+4
2025-03-05Rollup merge of #137728 - Darksonn:no-tuple-unsize, r=oli-obk许杰友 Jieyou Xu (Joe)-34/+0
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-05Merge pull request #19274 from Veykril/push-pouwrwwrlrltLukas Wirth-537/+547
Highlight unsafe operations as unsafe, not definitions
2025-03-05Use HIR unsafety information for unsafe syntax highlightngLukas Wirth-537/+547
2025-03-05Improve tracing log format in cargo_workspace.rsArthur Baars-1/+3
2025-03-05Add warning and debug information when `cargo metadata` failsArthur Baars-1/+16
The errors are silently dropped elsewhere, which make it really hard to debug issues due to dependency download failures.
2025-03-05add test cases for 'letm' keyword completionTongjun Gao-0/+19
2025-03-05Use size_of from the prelude instead of importedThalia Archibald-34/+24
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2025-03-05minicore: Add size_of to prelude and add rust_2024 preludeThalia Archibald-0/+6
2025-03-05Merge pull request #19286 from lnicola/twiddle-ciLaurențiu Nicola-2/+1
Twiddle with the `rustup` invocation on CI
2025-03-05Merge pull request #19265 from Shourya742/2025-03-01-add-dangling-dyn-diagnosticLaurențiu Nicola-9/+103
feat: Add diagnostic for dangling dyn and impl
2025-03-05Twiddle with the rustup invocation on CILaurențiu Nicola-2/+1
2025-03-04change 'let mut' keyword completion into 'ietm' snippetTongjun Gao-2/+2
2025-03-04Improve keyword completion for 'let' and 'let mut'Tongjun Gao-1/+32
2025-03-03Rollup merge of #137921 - lnicola:sync-from-ra, r=lnicolaMatthias Krüger-4153/+5956
Subtree update of `rust-analyzer` r? `@ghost`