35808 Commits

Author SHA1 Message Date
Emmanuel Ferdman
16f1fd8676
Fix rust-analyzer-contributors reference
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-08-24 08:04:00 -07:00
Shoyu Vanilla (Flint)
db7b3b1b91
Merge pull request #20523 from ChayimFriedman2/opaque-generics
fix: Fix opaque generics
2025-08-24 06:59:38 +00:00
Chayim Refael Friedman
03173a7ec7 Fix opaque generics
The parent generics were incorrectly not considered for TAIT.

I'm not convinced we should follow rustc here, also there are items (opaques) with more than 1 parent (opaque -> fn/type alias -> impl/trait) and I'm not sure we properly account for that in all places, but for now I left it as-is.

Also fix a bug where lifetimes' indices were incorrect when there is a self param (they started from 0 instead of 1).
2025-08-24 08:49:40 +03:00
Chayim Refael Friedman
05b7cbc236
Merge pull request #20507 from A4-Tacks/suggest-return-expr
Add ReturnExpr completion suggest
2025-08-24 00:46:49 +00:00
A4-Tacks
ac7615b2a3
Add ReturnExpr completion suggest 2025-08-24 08:26:25 +08:00
Chayim Refael Friedman
35369557a6
Merge pull request #20512 from A4-Tacks/arith-op-not-on-selected
replace_arith_op not applicable on selected
2025-08-24 00:17:09 +00:00
A4-Tacks
0fe2d7ffa1
replace_arith_op not applicable on selected 2025-08-24 07:57:50 +08:00
Chayim Refael Friedman
544ef84898
Merge pull request #20513 from A4-Tacks/let-in-let-chain
Add let in let-chain completion support
2025-08-23 22:17:27 +00:00
Chayim Refael Friedman
71662e4c65
Merge pull request #20518 from A4-Tacks/fix-else-in-in-let
Fix `else` completion in `let _ = if x {} $0`
2025-08-23 22:07:13 +00:00
Chayim Refael Friedman
413ed5a361
Merge pull request #20511 from A4-Tacks/fix-conv-int-lit-on-selected
convert_integer_literal not on selected
2025-08-23 22:03:17 +00:00
A4-Tacks
3e48de3905
Fix else completion in let _ = if x {} $0 2025-08-23 17:48:30 +08:00
A4-Tacks
6a7a0fac95
Add let in let-chain completion support
Example
---
```rust
fn f() {
    if true && $0 {}
}
```
->
```rust
fn f() {
    if true && let $1 = $0 {}
}
```
2025-08-22 21:58:49 +08:00
A4-Tacks
5f8cfeb3f4
fix: convert_integer_literal not on selected
`convert_integer_literal` can only convert the first literal,
it is not reasonable to apply it when selected

Example
---

```rust
fn main() {
    $01+1$0;
}
```

**Assist old outputs**:

```
Convert 1 to 0b1
Convert 1 to 0o1
Convert 1 to 0x1
Replace arithmetic with call to checked_*
Replace arithmetic with call to saturating_*
Replace arithmetic with call to wrapping_*
Extract into variable
Extract into constant
Extract into static
Extract into function
```

**Assist this PR outputs**:

```
Replace arithmetic with call to checked_*
Replace arithmetic with call to saturating_*
Replace arithmetic with call to wrapping_*
Extract into variable
Extract into constant
Extract into static
Extract into function
```
2025-08-22 17:13:30 +08:00
Shoyu Vanilla (Flint)
e6cd085099
Merge pull request #20506 from Veykril/veykril/push-xlytslrrylzq
Fix panic in syntax_highlighting
2025-08-22 08:14:02 +00:00
Lukas Wirth
0914f78f23 Fix panic in syntax_highlighting 2025-08-22 09:00:25 +02:00
Chayim Refael Friedman
14872a5332
Merge pull request #20504 from ShoyuVanilla/ethereum-madness
fix: Infinite recursion while lowering assoc type bounds from supertraits
2025-08-21 20:45:29 +00:00
Shoyu Vanilla
80ce520660 fix: Infinite recursion while lowering assoc type bounds from supertraits 2025-08-22 05:24:33 +09:00
Chayim Refael Friedman
9577ca7065
Merge pull request #20502 from ChayimFriedman2/attach-db-3
Remove unnecessary `salsa::attach()` calls
2025-08-21 20:03:59 +00:00
Chayim Refael Friedman
df375b0855 Remove unnecessary salsa::attach() calls 2025-08-21 22:40:58 +03:00
Chayim Refael Friedman
a161fd6bc1
Merge pull request #20497 from ChayimFriedman2/symbols-attach2
Attach the DB when mapping the result of `world_symbols()`
2025-08-21 05:25:40 +00:00
Chayim Refael Friedman
7a27a27f4b Attach the DB when mapping the result of world_symbols()
We call `try_to_nav()` there.
2025-08-21 08:06:43 +03:00
Chayim Refael Friedman
75ce5dc2c9
Merge pull request #20496 from ChayimFriedman2/symbols-attach
Attach the DB in symbol queries
2025-08-21 04:34:26 +00:00
Chayim Refael Friedman
243d158e88 Attach the DB in symbol queries 2025-08-21 07:14:55 +03:00
Laurențiu Nicola
f9e402dfcb
Merge pull request #20483 from lumiscosity/optimize-icon
Optimize editor plugin icon
2025-08-20 04:07:10 +00:00
lumiscosity
7c8b75344c Optimize icon
Losslessly optimizes the icon with:

```
oxipng -o max -a -s
oxipng -o max --zopfli -a -s
```
2025-08-19 11:41:58 +02:00
Shoyu Vanilla (Flint)
58bbdec731
Merge pull request #20447 from lcnr/typing-mode
user facing code should use not use `PostAnalysis`
2025-08-19 06:53:17 +00:00
lcnr
1d4f709e60 user facing code should use not use PostAnalysis 2025-08-19 08:24:34 +02:00
Lukas Wirth
a905e3b21b
Merge pull request #20470 from rust-lang/veykril/push-wppxsntzqtou
Auto-attach database in `Analysis` calls
2025-08-18 08:14:07 +00:00
Lukas Wirth
aed0fec1a9 Auto-attach database in Analysis calls 2025-08-18 09:52:23 +02:00
Shoyu Vanilla (Flint)
becf04b67a
Merge pull request #20442 from ChayimFriedman2/unqualify
fix: Only import the item in "Unqualify method call" if needed
2025-08-18 06:24:35 +00:00
Shoyu Vanilla (Flint)
80bc952871
Merge pull request #20454 from jackh726/next-trait-solver-next
Convert some things from chalk_ir types to rustc_type_ir types
2025-08-17 16:23:17 +00:00
jackh726
596a6bf6be Remove fixme comment 2025-08-17 16:04:50 +00:00
jackh726
3ceaf806f6 Add FIXME in named_associated_type_shorthand_candidates 2025-08-17 16:04:50 +00:00
jackh726
33cc8609dc Add fixme to associated_ty_item_bounds 2025-08-17 16:04:50 +00:00
jackh726
ec26d9f48a Update fixme 2025-08-17 16:04:50 +00:00
jackh726
cdf51f28f4 Add new_empty_tuple 2025-08-17 16:04:50 +00:00
jackh726
84388ceb0e Remove a bunch of stuff from chalk_db 2025-08-17 16:04:50 +00:00
jackh726
766e6b58ad Use impl_trait_ns in Impl::trait_ref 2025-08-17 16:04:50 +00:00
jackh726
e979349978 Switch TraitRef in hir::TraitRef to next solver 2025-08-17 16:04:50 +00:00
jackh726
7f0ec8b69f Replace layout_of_ty with layout_of_ty_ns 2025-08-17 16:04:50 +00:00
jackh726
da6fbda16c Remove all_super_traits in dyn_compatibility 2025-08-17 16:04:50 +00:00
jackh726
a66ba475bf Switch generics_require_sized_self to next solver 2025-08-17 16:04:50 +00:00
jackh726
74a9d17920 Convert more of dyn_compatibility to next-solver 2025-08-17 16:04:50 +00:00
jackh726
f9d2d2dd87 Switch associated_type_shorthand_candidates to lower_nextsolver 2025-08-17 16:04:50 +00:00
jackh726
496f5f9e96 Cleanup assoc_type_shorthand_candidates 2025-08-17 16:04:50 +00:00
jackh726
aa890b49ff Change direct_super_traits to use generic_predicates_for_param_ns 2025-08-17 16:04:50 +00:00
jackh726
17b94c41b1 Convert some of mir/eval to next-solver types 2025-08-17 16:04:50 +00:00
jackh726
9912b803bc Deduplicate layout_of_adt 2025-08-17 16:04:50 +00:00
jackh726
eeaefa4b9d impl HirDisplay for next_solver::Ty 2025-08-17 16:04:49 +00:00
jackh726
b2f107cb8b Convert more of dyn_compatibility to next-solver 2025-08-17 16:02:59 +00:00