aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-06-01 14:36:51 +0100
committerAleksey Kladov <[email protected]>2020-06-01 14:41:16 +0100
commit285717de33c25422db60420030d46d10cf3b0121 (patch)
treed757ba7d5afc93ae3f0a22fbd0cc401f52e067b9 /docs/user
parentd08232b10d7085e1f5be96b87cca880f6ee56c9e (diff)
Rename assist
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/generated_assists.adoc58
1 files changed, 29 insertions, 29 deletions
diff --git a/docs/user/generated_assists.adoc b/docs/user/generated_assists.adoc
index 580ab4358..4d2fb31d4 100644
--- a/docs/user/generated_assists.adoc
+++ b/docs/user/generated_assists.adoc
@@ -338,35 +338,6 @@ fn main() {
338 338
339 339
340[discrete] 340[discrete]
341=== `change_lifetime_anon_to_named`
342**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/change_lifetime_anon_to_named.rs#L9[change_lifetime_anon_to_named.rs]
343
344Change an anonymous lifetime to a named lifetime.
345
346.Before
347```rust
348impl Cursor<'_┃> {
349 fn node(self) -> &SyntaxNode {
350 match self {
351 Cursor::Replace(node) | Cursor::Before(node) => node,
352 }
353 }
354}
355```
356
357.After
358```rust
359impl<'a> Cursor<'a> {
360 fn node(self) -> &SyntaxNode {
361 match self {
362 Cursor::Replace(node) | Cursor::Before(node) => node,
363 }
364 }
365}
366```
367
368
369[discrete]
370=== `change_return_type_to_result` 341=== `change_return_type_to_result`
371**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/change_return_type_to_result.rs#L8[change_return_type_to_result.rs] 342**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/change_return_type_to_result.rs#L8[change_return_type_to_result.rs]
372 343
@@ -567,6 +538,35 @@ fn main() {
567 538
568 539
569[discrete] 540[discrete]
541=== `introduce_named_lifetime`
542**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/introduce_named_lifetime.rs#L12[introduce_named_lifetime.rs]
543
544Change an anonymous lifetime to a named lifetime.
545
546.Before
547```rust
548impl Cursor<'_┃> {
549 fn node(self) -> &SyntaxNode {
550 match self {
551 Cursor::Replace(node) | Cursor::Before(node) => node,
552 }
553 }
554}
555```
556
557.After
558```rust
559impl<'a> Cursor<'a> {
560 fn node(self) -> &SyntaxNode {
561 match self {
562 Cursor::Replace(node) | Cursor::Before(node) => node,
563 }
564 }
565}
566```
567
568
569[discrete]
570=== `introduce_variable` 570=== `introduce_variable`
571**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/introduce_variable.rs#L14[introduce_variable.rs] 571**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ra_assists/src/handlers/introduce_variable.rs#L14[introduce_variable.rs]
572 572