36902 Commits

Author SHA1 Message Date
Chayim Refael Friedman
2efc800780
Merge pull request #21021 from A4-Tacks/lib-smol_str-doc-feature
Fix removed feature `doc_auto_cfg` for smol_str lib
2025-11-17
2025-11-11 11:28:08 +00:00
A4-Tacks
48dbd84021
Fix removed feature doc_auto_cfg for smol_str lib 2025-11-11 15:19:56 +08:00
Chayim Refael Friedman
260f94c0ce
Merge pull request #21007 from joe-p/feat/more_param_names
Add "msg" and "op" to hidden inlay parameter names
2025-11-10 13:33:28 +00:00
Chayim Refael Friedman
f3cbd0ebe3
Merge pull request #20985 from Natural-selection1/rename
support rename after adding loop label
2025-11-10 08:04:33 +00:00
Hegui Dai
ef05935de0 support rename after adding label 2025-11-10 15:52:19 +08:00
Shoyu Vanilla (Flint)
73f565e076
Merge pull request #20542 from A4-Tacks/if-let-to-match-guard
Add guard support for replace_if_let_with_match
2025-11-10 07:11:20 +00:00
Shoyu Vanilla (Flint)
d7b5e0be9f
Merge pull request #20972 from A4-Tacks/impl-never-type
Fix not parse never type in inherent impl
2025-11-10 06:10:16 +00:00
Shoyu Vanilla (Flint)
99bfa4a5ec
Merge pull request #21003 from A4-Tacks/missing-curly-postfix-with-modifier-block
Fix .const missing block on with modifier block
2025-11-10 05:30:15 +00:00
Joe Polny
1d0ae248dc
feat: hide "msg" and "op" parameter names
"msg" adds noise to `expect` and crossbeam's `Sender`. "op" adds noise
to `map_err`
2025-11-09 18:15:48 -05:00
Chayim Refael Friedman
21f8445ea5
Merge pull request #21005 from fgamador/book-testing
Book>Contributing>Testing: Fix typos and distracting word choices
2025-11-10
2025-11-09 21:08:45 +00:00
fgamador
0c593bef50 Typos and distracting word choices 2025-11-09 11:47:01 -08:00
A4-Tacks
db86a0065c
Fix .const missing block on with modifier block
Example
---
```rust
fn main() { unsafe {1}.$0 }
```

**Before this PR**

```rust
fn main() { const unsafe {{1}} }
```

**After this PR**

```rust
fn main() { const { unsafe {1} } }
```
2025-11-09 21:26:01 +08:00
Lukas Wirth
6b10d39e3b
Merge pull request #21002 from Veykril/veykril/push-nztxvpnntmrx
lib: Bump editions to 2024 and remove legacy files
2025-11-09 13:24:56 +00:00
Lukas Wirth
c012ee9a48 lib: Bump editions to 2024 and remove legacy files 2025-11-09 13:40:51 +01:00
Lukas Wirth
2bbbc61722
Merge pull request #20997 from Veykril/push-zsuorxrkpupr
perf: Only populate public items in dependency symbol index
2025-11-09 12:38:57 +00:00
Lukas Wirth
7f82691f6e perf: Only populate public items in dependency symbol index 2025-11-09 13:30:12 +01:00
Lukas Wirth
0788e84d97
Merge pull request #20909 from taj-p/master
Rename `downcast_[ref|mut]_unchecked` -> `downcast_unchecked_[ref|mut]`
2025-11-09 11:51:58 +00:00
Lukas Wirth
d26e4b24d8
Merge pull request #20995 from Veykril/push-kysxxnruzslp
internal: Move `SymbolsDatabase` over to new salsa style
2025-11-08 17:44:41 +00:00
Lukas Wirth
3c19ebf63a Disassemble SymbolsDatabase 2025-11-08 18:35:10 +01:00
Lukas Wirth
1efe8b68c3
Merge pull request #20994 from Veykril/push-npvyklkuxnlr
perf: Reduce memory usage of symbol index
2025-11-08 12:53:03 +00:00
Lukas Wirth
abf2e3ed15 Replace more smol strings with symbols 2025-11-08 13:44:35 +01:00
Lukas Wirth
6ba7d245d4 Replace SmolStr usage with Symbol in FileSymbol 2025-11-08 13:13:07 +01:00
Lukas Wirth
4cea939285
Merge pull request #20988 from Veykril/push-rutmxykksupu
Merge `smol_str` into rust-analyzer
2025-11-08 11:59:46 +00:00
Lukas Wirth
64b00e77a2 Reformat 2025-11-08 12:50:55 +01:00
Lukas Wirth
ed2ae231e0
Merge pull request #20990 from Veykril/push-zzrzusnvwpzp
Merge `ungrammar` into rust-analyzer
2025-11-08 10:48:56 +00:00
Lukas Wirth
df009eef0b Reformat 2025-11-08 11:40:25 +01:00
Lukas Wirth
3efda6363c
Merge pull request #20991 from Veykril/push-rrpwmvnskstu
Merge `text-size` into rust-analyzer
2025-11-08 10:23:55 +00:00
Lukas Wirth
f12388c023 Reformat 2025-11-08 11:12:59 +01:00
Lukas Wirth
3c741d5f7c Update Cargo.toml and lockfile 2025-11-08 11:10:13 +01:00
Lukas Wirth
6f83ceeda6 Subtree text-size 2025-11-07 20:27:18 +01:00
Lukas Wirth
f48b2f65d3 Subtree ungrammar 2025-11-07 20:19:36 +01:00
Lukas Wirth
f46ac05406 Subtree smol_str 2025-11-07 20:01:13 +01:00
A4-Tacks
f96a01b79a
Add guard support for replace_if_let_with_match
- Fix loses comments
- Fix bad indentation

Example
---
```rust
fn main() {
    if $0let true = true
        && true
        && false
    {
        code()
    }
}
```

**Before this PR**

Assist not applicable

**After this PR**

```rust
fn main() {
    match true {
        true if true
            && false => code(),
        _ => (),
    }
}
```

---

```rust
pub fn foo(foo: i32) {
    $0if let 1 = foo {
        // some comment
        self.foo();
    } else if let 2 = foo {
        // some comment 2
        self.bar()
    }
}
```

**Before this PR**

```rust
pub fn foo(foo: i32) {
    match foo {
        1 => {
            self.foo();
        }
        2 => self.bar(),
        _ => (),
    }
}
```

**After this PR**

```rust
pub fn foo(foo: i32) {
    match foo {
        1 => {
            // some comment
            self.foo();
        }
        2 => {
            // some comment 2
            self.bar()
        },
        _ => (),
    }
}
```
2025-11-07 10:46:56 +08:00
Lukas Wirth
4bf516ee5a
Merge pull request #20973 from Natural-selection1/demorgan
fix demorgan assist to handle method call
2025-11-06 14:20:44 +00:00
Hegui Dai
06668b6e8c refactor 2025-11-06 21:44:30 +08:00
Laurențiu Nicola
3668c75171
Merge pull request #20977 from chirizxc/patch-1
Move safe computation out of unsafe block
2025-11-06 08:47:03 +00:00
chiri
c9b5683467
Move safe computation out of unsafe block 2025-11-06 11:37:45 +03:00
Hegui Dai
e9b8265173 fix demorgan assist to handle method call 2025-11-05 20:14:52 +08:00
A4-Tacks
e92e6792cf
Fix not parse never type in inherent impl 2025-11-05 16:33:02 +08:00
Chayim Refael Friedman
5ffe3f45ce
Merge pull request #20971 from ShoyuVanilla/async-fn-sig
fix: Fix panicking while resolving callable sigs for `AsyncFnMut`
2025-11-04 16:44:01 +00:00
Shoyu Vanilla
c7c9e25971 fix: Fix panicking while resolving callable sigs for AsyncFnMut 2025-11-05 01:00:09 +09:00
Laurențiu Nicola
51af7a37c5
Merge pull request #20960 from rust-lang/rustc-pull
minor: Rustc pull update
2025-11-04 08:18:22 +00:00
Laurențiu Nicola
c00e22df9b Fix test URL 2025-11-04 10:09:45 +02:00
Chayim Refael Friedman
7bd9b76bd2
Merge pull request #20966 from ChayimFriedman2/fix-test-name
minor: Fix test name
2025-11-04 08:07:36 +00:00
Chayim Refael Friedman
2b9591efae Fix test name 2025-11-04 09:58:29 +02:00
Shoyu Vanilla (Flint)
c46279da2f
Merge pull request #20565 from A4-Tacks/conv-range-for-to-while
Add ide-assist: convert_range_for_to_while
2025-11-04 05:59:34 +00:00
A4-Tacks
180a5e23d3
Add dynamic assistant description 2025-11-04 13:50:09 +08:00
A4-Tacks
8549afe4a6
Add ide-assist: convert_range_for_to_while
Convert for each range into while loop.

```rust
fn foo() {
    $0for i in 3..7 {
        foo(i);
    }
}
```
->
```rust
fn foo() {
    let mut i = 3;
    while i < 7 {
        foo(i);
        i += 1;
    }
}
```
2025-11-04 13:31:41 +08:00
Shoyu Vanilla (Flint)
43df584557
Merge pull request #20961 from A4-Tacks/more-in-value
Add more expression to 'in_value'
2025-11-04 04:35:54 +00:00
Lukas Wirth
132d3338f4
Merge pull request #20963 from ShoyuVanilla/lit-suffix
fix: Expand literals with wrong suffixes into `LitKind::Err`
2025-11-03 20:18:32 +00:00