@@ -44,7 +44,7 @@ fn main() {
44
44
45
45
[discrete]
46
46
=== `add_impl_default_members`
47
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_missing_impl_members.rs#L55 [add_missing_impl_members.rs]
47
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_missing_impl_members.rs#L57 [add_missing_impl_members.rs]
48
48
49
49
Adds scaffold for overriding default impl members.
50
50
@@ -81,7 +81,7 @@ impl Trait for () {
81
81
82
82
[discrete]
83
83
=== `add_impl_missing_members`
84
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_missing_impl_members.rs#L14 [add_missing_impl_members.rs]
84
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/add_missing_impl_members.rs#L16 [add_missing_impl_members.rs]
85
85
86
86
Adds scaffold for required impl members.
87
87
@@ -236,7 +236,7 @@ fn main() {
236
236
237
237
[discrete]
238
238
=== `auto_import`
239
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/auto_import.rs#L66 [auto_import.rs]
239
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/auto_import.rs#L68 [auto_import.rs]
240
240
241
241
If the name is unresolved, provides all possible imports for it.
242
242
@@ -276,7 +276,7 @@ pub(crate) fn frobnicate() {}
276
276
277
277
[discrete]
278
278
=== `convert_bool_then_to_if`
279
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/convert_bool_then.rs#L133 [convert_bool_then.rs]
279
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/convert_bool_then.rs#L132 [convert_bool_then.rs]
280
280
281
281
Converts a `bool::then` method call to an equivalent if expression.
282
282
@@ -328,7 +328,7 @@ fn main() {
328
328
329
329
[discrete]
330
330
=== `convert_if_to_bool_then`
331
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/convert_bool_then.rs#L21 [convert_bool_then.rs]
331
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/convert_bool_then.rs#L20 [convert_bool_then.rs]
332
332
333
333
Converts an if expression into a corresponding `bool::then` call.
334
334
@@ -370,7 +370,7 @@ const _: i32 = 0b1010;
370
370
371
371
[discrete]
372
372
=== `convert_into_to_from`
373
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/convert_into_to_from.rs#L11 [convert_into_to_from.rs]
373
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/convert_into_to_from.rs#L8 [convert_into_to_from.rs]
374
374
375
375
Converts an Into impl to an equivalent From impl.
376
376
@@ -583,7 +583,7 @@ fn qux(bar: Bar, baz: Baz) {}
583
583
584
584
[discrete]
585
585
=== `extract_function`
586
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_function.rs#L35 [extract_function.rs]
586
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_function.rs#L33 [extract_function.rs]
587
587
588
588
Extracts selected statements and comments into new function.
589
589
@@ -648,7 +648,7 @@ fn bar(name: i32) -> i32 {
648
648
649
649
[discrete]
650
650
=== `extract_struct_from_enum_variant`
651
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs#L28 [extract_struct_from_enum_variant.rs]
651
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs#L26 [extract_struct_from_enum_variant.rs]
652
652
653
653
Extracts a struct from enum variant.
654
654
@@ -1120,7 +1120,7 @@ impl Value {
1120
1120
1121
1121
[discrete]
1122
1122
=== `generate_from_impl_for_enum`
1123
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs#L7 [generate_from_impl_for_enum.rs]
1123
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_from_impl_for_enum.rs#L6 [generate_from_impl_for_enum.rs]
1124
1124
1125
1125
Adds a From impl for an enum variant with one tuple field.
1126
1126
@@ -1143,7 +1143,7 @@ impl From<u32> for A {
1143
1143
1144
1144
[discrete]
1145
1145
=== `generate_function`
1146
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_function.rs#L27 [generate_function.rs]
1146
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/generate_function.rs#L26 [generate_function.rs]
1147
1147
1148
1148
Adds a stub function with a signature matching the function under the cursor.
1149
1149
@@ -1341,7 +1341,7 @@ impl Person {
1341
1341
1342
1342
[discrete]
1343
1343
=== `inline_call`
1344
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_call.rs#L155 [inline_call.rs]
1344
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_call.rs#L156 [inline_call.rs]
1345
1345
1346
1346
Inlines a function or method body creating a `let` statement per parameter unless the parameter
1347
1347
can be inlined. The parameter will be inlined either if it the supplied argument is a simple local
@@ -1367,7 +1367,7 @@ fn foo(name: Option<&str>) {
1367
1367
1368
1368
[discrete]
1369
1369
=== `inline_into_callers`
1370
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_call.rs#L23 [inline_call.rs]
1370
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/inline_call.rs#L24 [inline_call.rs]
1371
1371
1372
1372
Inline a function or method body into all of its callers where possible, creating a `let` statement per parameter
1373
1373
unless the parameter can be inlined. The parameter will be inlined either if it the supplied argument is a simple local
@@ -2061,7 +2061,7 @@ fn main() {
2061
2061
2062
2062
[discrete]
2063
2063
=== `replace_derive_with_manual_impl`
2064
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs#L23 [replace_derive_with_manual_impl.rs]
2064
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs#L21 [replace_derive_with_manual_impl.rs]
2065
2065
2066
2066
Converts a `derive` impl into a manual one.
2067
2067
@@ -2439,7 +2439,7 @@ fn foo() {
2439
2439
2440
2440
[discrete]
2441
2441
=== `unwrap_result_return_type`
2442
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unwrap_result_return_type.rs#L10 [unwrap_result_return_type.rs]
2442
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/unwrap_result_return_type.rs#L13 [unwrap_result_return_type.rs]
2443
2443
2444
2444
Unwrap the function's return type.
2445
2445
@@ -2456,7 +2456,7 @@ fn foo() -> i32 { 42i32 }
2456
2456
2457
2457
[discrete]
2458
2458
=== `wrap_return_type_in_result`
2459
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/wrap_return_type_in_result.rs#L11 [wrap_return_type_in_result.rs]
2459
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/wrap_return_type_in_result.rs#L14 [wrap_return_type_in_result.rs]
2460
2460
2461
2461
Wrap the function's return type into Result.
2462
2462
0 commit comments