|
1 |
| -//Generated file, do not edit by hand, see `xtask/src/codegen` |
| 1 | +//! Generated by `sourcegen_assists_docs`, do not edit by hand. |
| 2 | + |
2 | 3 | [discrete]
|
3 | 4 | === `add_explicit_type`
|
4 | 5 | **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_explicit_type.rs#L9[add_explicit_type.rs]
|
@@ -1074,10 +1075,10 @@ fn foo() -> i32 { 42i32 }
|
1074 | 1075 |
|
1075 | 1076 |
|
1076 | 1077 | [discrete]
|
1077 |
| -=== `inline_function` |
1078 |
| -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_function.rs#L13[inline_function.rs] |
| 1078 | +=== `inline_call` |
| 1079 | +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_call.rs#L13[inline_call.rs] |
1079 | 1080 |
|
1080 |
| -Inlines a function body. |
| 1081 | +Inlines a function or method body. |
1081 | 1082 |
|
1082 | 1083 | .Before
|
1083 | 1084 | ```rust
|
@@ -1239,7 +1240,7 @@ use std::{fmt::Formatter, io};
|
1239 | 1240 | === `merge_match_arms`
|
1240 | 1241 | **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/merge_match_arms.rs#L11[merge_match_arms.rs]
|
1241 | 1242 |
|
1242 |
| -Merges identical match arms. |
| 1243 | +Merges the current match arm with the following if their bodies are identical. |
1243 | 1244 |
|
1244 | 1245 | .Before
|
1245 | 1246 | ```rust
|
@@ -1625,9 +1626,9 @@ fn main() {
|
1625 | 1626 |
|
1626 | 1627 | [discrete]
|
1627 | 1628 | === `replace_if_let_with_match`
|
1628 |
| -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L18[replace_if_let_with_match.rs] |
| 1629 | +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L19[replace_if_let_with_match.rs] |
1629 | 1630 |
|
1630 |
| -Replaces `if let` with an else branch with a `match` expression. |
| 1631 | +Replaces a `if let` expression with a `match` expression. |
1631 | 1632 |
|
1632 | 1633 | .Before
|
1633 | 1634 | ```rust
|
@@ -1702,7 +1703,7 @@ fn compute() -> Option<i32> { None }
|
1702 | 1703 |
|
1703 | 1704 | [discrete]
|
1704 | 1705 | === `replace_match_with_if_let`
|
1705 |
| -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L93[replace_if_let_with_match.rs] |
| 1706 | +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_if_let_with_match.rs#L151[replace_if_let_with_match.rs] |
1706 | 1707 |
|
1707 | 1708 | Replaces a binary `match` with a wildcard pattern and no guards with an `if let` expression.
|
1708 | 1709 |
|
@@ -1734,7 +1735,7 @@ fn handle(action: Action) {
|
1734 | 1735 |
|
1735 | 1736 | [discrete]
|
1736 | 1737 | === `replace_qualified_name_with_use`
|
1737 |
| -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs#L6[replace_qualified_name_with_use.rs] |
| 1738 | +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_qualified_name_with_use.rs#L10[replace_qualified_name_with_use.rs] |
1738 | 1739 |
|
1739 | 1740 | Adds a use statement for a given fully-qualified name.
|
1740 | 1741 |
|
@@ -1800,7 +1801,7 @@ fn main() {
|
1800 | 1801 |
|
1801 | 1802 | [discrete]
|
1802 | 1803 | === `split_import`
|
1803 |
| -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/split_import.rs#L7[split_import.rs] |
| 1804 | +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/split_import.rs#L5[split_import.rs] |
1804 | 1805 |
|
1805 | 1806 | Wraps the tail of import into braces.
|
1806 | 1807 |
|
@@ -1841,7 +1842,7 @@ fn arithmetics {
|
1841 | 1842 |
|
1842 | 1843 | [discrete]
|
1843 | 1844 | === `unmerge_use`
|
1844 |
| -**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L12[unmerge_use.rs] |
| 1845 | +**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unmerge_use.rs#L13[unmerge_use.rs] |
1845 | 1846 |
|
1846 | 1847 | Extracts single use item from use list.
|
1847 | 1848 |
|
|
0 commit comments