<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/tools/rust-analyzer/crates/ide-assists, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-09-26T09:05:59+00:00</updated>
<entry>
<title>Merge pull request #20748 from A4-Tacks/migrate-arith-op-prec</title>
<updated>2025-09-26T09:05:59+00:00</updated>
<author>
<name>Shoyu Vanilla (Flint)</name>
<email>modulo641@gmail.com</email>
</author>
<published>2025-09-26T09:05:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7de38d36eb9bf6bc607bbccc79efd85cde6ec00c'/>
<id>urn:sha1:7de38d36eb9bf6bc607bbccc79efd85cde6ec00c</id>
<content type='text'>
Migrate `replace_arith_op` assist to use `SyntaxEditor`
</content>
</entry>
<entry>
<title>Merge pull request #20599 from A4-Tacks/bang-de-morgan</title>
<updated>2025-09-26T08:58:07+00:00</updated>
<author>
<name>Shoyu Vanilla (Flint)</name>
<email>modulo641@gmail.com</email>
</author>
<published>2025-09-26T08:58:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d4c00def0cc0657645b3ac956a7a35e4639871a'/>
<id>urn:sha1:8d4c00def0cc0657645b3ac956a7a35e4639871a</id>
<content type='text'>
Add applicable on bang `!` for apply_demorgan
</content>
</entry>
<entry>
<title>Migrate `replace_arith_op` assist to use `SyntaxEditor`</title>
<updated>2025-09-26T08:54:47+00:00</updated>
<author>
<name>A4-Tacks</name>
<email>wdsjxhno1001@163.com</email>
</author>
<published>2025-09-26T08:53:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93a96bf29c22d05894ca343b624cd09048aa7bb7'/>
<id>urn:sha1:93a96bf29c22d05894ca343b624cd09048aa7bb7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #20611 from A4-Tacks/replace-arith-op-prec</title>
<updated>2025-09-26T08:30:46+00:00</updated>
<author>
<name>Shoyu Vanilla (Flint)</name>
<email>modulo641@gmail.com</email>
</author>
<published>2025-09-26T08:30:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a7df846d55a31b3c4cd796a9a8628f60938ec4c5'/>
<id>urn:sha1:a7df846d55a31b3c4cd796a9a8628f60938ec4c5</id>
<content type='text'>
Fix precedence parenthesis for replace_arith_op
</content>
</entry>
<entry>
<title>Merge pull request #20731 from A4-Tacks/expand-rest-pat-in-tuple-slice-pat</title>
<updated>2025-09-26T06:54:30+00:00</updated>
<author>
<name>Shoyu Vanilla (Flint)</name>
<email>modulo641@gmail.com</email>
</author>
<published>2025-09-26T06:54:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c491a330f3692beb6cbb5c6c99705a8eb8c2b5c4'/>
<id>urn:sha1:c491a330f3692beb6cbb5c6c99705a8eb8c2b5c4</id>
<content type='text'>
Fix expand rest pattern in tuple and slice pattern
</content>
</entry>
<entry>
<title>Fix expand rest pattern in tuple and slice pattern</title>
<updated>2025-09-26T06:44:05+00:00</updated>
<author>
<name>A4-Tacks</name>
<email>wdsjxhno1001@163.com</email>
</author>
<published>2025-09-23T05:18:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38284d10dc45b3bb2c9aa412dce1e5b1e16c639a'/>
<id>urn:sha1:38284d10dc45b3bb2c9aa412dce1e5b1e16c639a</id>
<content type='text'>
Assist: expand_tuple_rest_pattern

Fills fields by replacing rest pattern in tuple patterns.

Example
---
```
fn foo(bar: (char, i32, i32)) {
    let (ch, ..$0) = bar;
}
```
-&gt;
```
fn foo(bar: (char, i32, i32)) {
    let (ch, _1, _2) = bar;
}
```

---

Assist: expand_slice_rest_pattern

Fills fields by replacing rest pattern in slice patterns.

Example
---
```
fn foo(bar: [i32; 3]) {
    let [first, ..$0] = bar;
}
```
-&gt;
```
fn foo(bar: [i32; 3]) {
    let [first, _1, _2] = bar;
}
```
</content>
</entry>
<entry>
<title>Merge pull request #20598 from A4-Tacks/let-chain-sup-conv-to-guarded-ret</title>
<updated>2025-09-26T06:42:10+00:00</updated>
<author>
<name>Shoyu Vanilla (Flint)</name>
<email>modulo641@gmail.com</email>
</author>
<published>2025-09-26T06:42:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=acd320f7b3c94f358ceafb229e773e1809a62034'/>
<id>urn:sha1:acd320f7b3c94f358ceafb229e773e1809a62034</id>
<content type='text'>
Add let-chain support for convert_to_guarded_return
</content>
</entry>
<entry>
<title>Merge pull request #20736 from A4-Tacks/fix-invert-if-let-chain</title>
<updated>2025-09-26T05:36:52+00:00</updated>
<author>
<name>Shoyu Vanilla (Flint)</name>
<email>modulo641@gmail.com</email>
</author>
<published>2025-09-26T05:36:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=35f76dfcd99f66684544ebee4c9c25bdba01dd82'/>
<id>urn:sha1:35f76dfcd99f66684544ebee4c9c25bdba01dd82</id>
<content type='text'>
Fix applicable on if-let-chain for invert_if
</content>
</entry>
<entry>
<title>Add applicable in closure for convert_to_guarded_return</title>
<updated>2025-09-25T14:04:53+00:00</updated>
<author>
<name>A4-Tacks</name>
<email>wdsjxhno1001@163.com</email>
</author>
<published>2025-09-25T13:57:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=11c35cd0bcb6e0c285be031f10d14d64bbf2bd9c'/>
<id>urn:sha1:11c35cd0bcb6e0c285be031f10d14d64bbf2bd9c</id>
<content type='text'>
Example
---
```rust
fn main() {
    let _f = || {
        bar();
        if$0 true {
            foo();

            // comment
            bar();
        }
    }
}
```
-&gt;
```rust
fn main() {
    let _f = || {
        bar();
        if false {
            return;
        }
        foo();

        // comment
        bar();
    }
}
```
</content>
</entry>
<entry>
<title>Fix not applicable for if-expr in let-stmt</title>
<updated>2025-09-25T14:00:56+00:00</updated>
<author>
<name>A4-Tacks</name>
<email>wdsjxhno1001@163.com</email>
</author>
<published>2025-09-25T13:57:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1947949f3d7212c181049d96e2665481d3bddc6b'/>
<id>urn:sha1:1947949f3d7212c181049d96e2665481d3bddc6b</id>
<content type='text'>
Example
---
```rust
fn main() {
    let _x = loop {
        if$0 let Ok(x) = Err(92) {
            foo(x);
        }
    };
}
```

**Before**:

Assist not applicable

**After**:

```rust
fn main() {
    let _x = loop {
        let Ok(x) = Err(92) else { continue };
        foo(x);
    };
}
```
</content>
</entry>
</feed>
