1
1
//Generated file, do not edit by hand, see `xtask/src/codegen`
2
2
[discrete]
3
3
=== `add_custom_impl`
4
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/add_custom_impl.rs#L14 [add_custom_impl.rs]
4
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/add_custom_impl.rs#L19 [add_custom_impl.rs]
5
5
6
6
Adds impl block for derived trait.
7
7
@@ -45,7 +45,7 @@ fn main() {
45
45
46
46
[discrete]
47
47
=== `add_hash`
48
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L91 [raw_string.rs]
48
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L92 [raw_string.rs]
49
49
50
50
Adds a hash to a raw string literal.
51
51
@@ -66,7 +66,7 @@ fn main() {
66
66
67
67
[discrete]
68
68
=== `add_impl_default_members`
69
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/add_missing_impl_members.rs#L64 [add_missing_impl_members.rs]
69
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/add_missing_impl_members.rs#L51 [add_missing_impl_members.rs]
70
70
71
71
Adds scaffold for overriding default impl members.
72
72
@@ -104,7 +104,7 @@ impl Trait for () {
104
104
105
105
[discrete]
106
106
=== `add_impl_missing_members`
107
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/add_missing_impl_members.rs#L25 [add_missing_impl_members.rs]
107
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/add_missing_impl_members.rs#L12 [add_missing_impl_members.rs]
108
108
109
109
Adds scaffold for required impl members.
110
110
@@ -320,7 +320,7 @@ fn qux(bar: Bar, baz: Baz) {}
320
320
321
321
[discrete]
322
322
=== `extract_struct_from_enum_variant`
323
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_struct_from_enum_variant.rs#L18 [extract_struct_from_enum_variant.rs]
323
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_struct_from_enum_variant.rs#L19 [extract_struct_from_enum_variant.rs]
324
324
325
325
Extracts a struct from enum variant.
326
326
@@ -604,6 +604,24 @@ impl<T: Clone> Ctx<T> {
604
604
```
605
605
606
606
607
+ [discrete]
608
+ === `infer_function_return_type`
609
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/infer_function_return_type.rs#L7[infer_function_return_type.rs]
610
+
611
+ Adds the return type to a function or closure inferred from its tail expression if it doesn't have a return
612
+ type specified. This assists is useable in a functions or closures tail expression or return type position.
613
+
614
+ .Before
615
+ ```rust
616
+ fn foo() { 4┃2i32 }
617
+ ```
618
+
619
+ .After
620
+ ```rust
621
+ fn foo() -> i32 { 42i32 }
622
+ ```
623
+
624
+
607
625
[discrete]
608
626
=== `inline_local_variable`
609
627
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/inline_local_variable.rs#L13[inline_local_variable.rs]
@@ -681,7 +699,7 @@ fn main() {
681
699
682
700
[discrete]
683
701
=== `make_raw_string`
684
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L13 [raw_string.rs]
702
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L8 [raw_string.rs]
685
703
686
704
Adds `r#` to a plain string literal.
687
705
@@ -702,7 +720,7 @@ fn main() {
702
720
703
721
[discrete]
704
722
=== `make_usual_string`
705
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L52 [raw_string.rs]
723
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L50 [raw_string.rs]
706
724
707
725
Turns a raw string into a plain string.
708
726
@@ -898,7 +916,7 @@ fn main() {
898
916
899
917
[discrete]
900
918
=== `remove_hash`
901
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L115 [raw_string.rs]
919
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/raw_string.rs#L120 [raw_string.rs]
902
920
903
921
Removes a hash from a raw string literal.
904
922
@@ -1081,7 +1099,7 @@ fn process(map: HashMap<String, String>) {}
1081
1099
1082
1100
[discrete]
1083
1101
=== `replace_string_with_char`
1084
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_string_with_char.rs#L9 [replace_string_with_char.rs]
1102
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_string_with_char.rs#L5 [replace_string_with_char.rs]
1085
1103
1086
1104
Replace string with char.
1087
1105
0 commit comments