about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates
AgeCommit message (Collapse)AuthorLines
2025-08-14Fix indent for convert_match_to_let_elseA4-Tacks-6/+58
Example --- ``` //- minicore: option fn f() { let x$0 = match Some(()) { Some(it) => it, None => {//comment println!("nope"); return }, }; } ``` **Old output**: ```rust fn f() { let Some(x) = Some(()) else {//comment println!("nope"); return }; } ``` **This PR output**: ```rust fn f() { let Some(x) = Some(()) else {//comment println!("nope"); return }; } ```
2025-08-13Shift vars when mapping Dynjackh726-0/+3
2025-08-13Merge pull request #20390 from A4-Tacks/if-else-comp-in-args-or-letChayim Refael Friedman-1/+127
Add if..else completions in LetStmt and ArgList
2025-08-13Merge pull request #20446 from lcnr/kinda-unhelpful-3Lukas Wirth-81/+88
next-solver fun time
2025-08-13manually normalize aliaslcnr-8/+3
2025-08-13layout_of uses `PostAnalysis`lcnr-2/+6
2025-08-13implement `type_of_opaque`lcnr-72/+69
2025-08-13Merge pull request #20376 from fee1-dead/traitaliasLukas Wirth-590/+102
Merge Trait and TraitAlias handling
2025-08-13Merge pull request #20445 from rust-lang/veykril/push-twmmuyzwtxnoLukas Wirth-9/+11
fix: Attach db for inlay hint compute
2025-08-13update a few fixmes, and one trivial improvementlcnr-11/+22
2025-08-13fix: Attach db for inlay hint computeLukas Wirth-9/+11
2025-08-13fix errors after rebaseDeadbeef-14/+13
2025-08-13Print fields of interned IDs in hir-ty instead of just the IDLukas Wirth-21/+25
2025-08-13add test for trait alias projectionsDeadbeef-0/+21
2025-08-13Merge Trait and TraitAlias handlingDeadbeef-576/+68
2025-08-13Merge pull request #20329 from jackh726/next-trait-solver-querifyLukas Wirth-1297/+19058
Switch from Chalk to the next trait solver
2025-08-13Only import the item in "Unqualify method call" if neededChayim Refael Friedman-1/+122
2025-08-12Merge pull request #20432 from ↵Chayim Refael Friedman-8/+102
sgasho/fix/20215_implement_default_member_to_resolve_ident_pat Fix "Implement default members" to resolve IdentPat
2025-08-12fix: Implement default member to resolve IdentPatsgasho-8/+102
2025-08-11Merge pull request #20434 from ShoyuVanilla/diag-fix-againShoyu Vanilla (Flint)-1/+1
fix: Panic while trying to clear old diagnostics while there's nothing
2025-08-12fix: Panic while trying to clear old diagnostics while there's nothingShoyu Vanilla-1/+1
2025-08-12Make import sorting order follow 2024 edition styleShoyu Vanilla-50/+219
2025-08-11Merge pull request #20420 from iorizu/doc-symbols-filterChayim Refael Friedman-47/+351
feat: Add Config Option to Exclude Locals from Document Symbol Search
2025-08-11hotfix: Update flycheck diagnostics generationShoyu Vanilla (Flint)-0/+1
2025-08-11Merge ref '21a19c297d4f' from rust-lang/rustThe rustc-josh-sync Cronjob Bot-18/+4
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 21a19c297d4f5a03501d92ca251bd7a17073c08a Filtered ref: 9a5c1fb93028e1a29a7598ce782efb0c5d7be534 This merge was created using https://github.com/rust-lang/josh-sync.
2025-08-10Fix minor thingsIfeanyi Orizu-21/+20
2025-08-10Add config option to exclude locals from doc searchIfeanyi Orizu-28/+333
2025-08-10Merge pull request #20419 from ShoyuVanilla/flyck-genShoyu Vanilla (Flint)-38/+148
internal: Make flycheck generational
2025-08-10internal: Make flycheck generationalShoyu Vanilla-38/+148
2025-08-10Merge pull request #20418 from A4-Tacks/fix-extract-expr-from-fmtstr-on-writeChayim Refael Friedman-6/+40
Fix extract_expressions_from_format_string on write!
2025-08-10Fix extract_expressions_from_format_string on write!A4-Tacks-6/+40
**Input**: ```rust fn main() { write!(f, "{2+3}$0") } ``` **Old output**: ```rust fn main() { write!("{}"$0, 2+3) } ``` **This PR output**: ```rust fn main() { write!(f, "{}"$0, 2+3) } ```
2025-08-10parser: fix parsing of trait bound polarity and for-bindersNathaniel McCallum-19/+73
The rustc AST allows both `for<>` binders and `?` polarity modifiers in trait bounds, but they are parsed in a specific order and validated for correctness: 1. `for<>` binder is parsed first. 2. Polarity modifiers (`?`, `!`) are parsed second. 3. The parser validates that binders and polarity modifiers do not conflict: ```rust if let Some(binder_span) = binder_span { match modifiers.polarity { BoundPolarity::Maybe(polarity_span) => { // Error: "for<...> binder not allowed with ? polarity" } } } ``` This implies: - `for<> ?Sized` → Valid syntax. Invalid semantics. - `?for<> Sized` → Invalid syntax. However, rust-analyzer incorrectly had special-case logic that allowed `?for<>` as valid syntax. This fix removes that incorrect special case, making rust-analyzer reject `?for<> Sized` as a syntax error, matching rustc behavior. This has caused confusion in other crates (such as syn) which rely on these files to implement correct syntax evaluation.
2025-08-10Merge pull request #20409 from A4-Tacks/minicore-writeChayim Refael Friedman-0/+21
Add write! and writeln! to minicore
2025-08-09Implement next trait solverjackh726-1297/+19058
2025-08-09remove `P`Deadbeef-4/+4
2025-08-09fix: generate function by indet tokenHmikihiro-1/+29
2025-08-08remove duplicate field in DebugBenjaminBrienen-1/+0
2025-08-09Add write! and writeln! to minicoreA4-Tacks-0/+21
2025-08-07Merge pull request #20400 from rust-lang/veykril/push-ksxzmxqymstoLukas Wirth-6/+7
Disable error log for position clamping, its too noisy due to ease of triggering
2025-08-07Disable error log for position clamping, its too noisy due to ease of triggeringLukas Wirth-6/+7
2025-08-07Enable warning logs by defaultLukas Wirth-2/+2
2025-08-07Rollup merge of #144682 - nxsaken:strict_overflow_ops, r=Mark-SimulacrumStuart Cook-14/+0
Stabilize `strict_overflow_ops` Closes rust-lang/rust#118260
2025-08-07In extract_module.rs, generate ast::Module instead of StringHmikihiro-66/+126
2025-08-06Merge pull request #20392 from rust-lang/veykril/push-pxplxplxvvyyLukas Wirth-3/+7
Report the incorrect payload when failing to deserialize lsp messages
2025-08-06Report the incorrect payload when failing to deserialize lsp messagesLukas Wirth-3/+7
2025-08-06Merge pull request #20354 from A4-Tacks/clean-lit-stmt-remove-dbgChayim Refael Friedman-0/+50
Add remove literal dbg stmt for remove_dbg
2025-08-06Add remove simple dbg stmt for remove_dbgA4-Tacks-0/+50
Remove only contain literals dbg statement ```rust fn foo() { let n = 2; $0dbg!(3); dbg!(2.6); dbg!(1, 2.5); dbg!('x'); dbg!(&n); dbg!(n); // needless comment dbg!("foo");$0 } ``` -> ```rust fn foo() { // needless comment } ``` Old: ```rust fn foo() { 3; 2.6; (1, 2.5); 'x'; &n; n; // needless comment "foo"; } ```
2025-08-06Merge pull request #20387 from ChayimFriedman2/rename-macroShoyu Vanilla (Flint)-63/+81
fix: Do not remove the original token when descending into derives
2025-08-05Merge pull request #20384 from vxpm/fix-external-docsChayim Refael Friedman-1/+26
fix external docs for exported macros
2025-08-05fix external docs for exported macrosvinícius x-1/+26
add test