diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-01 14:41:41 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-01 14:41:41 +0100 |
commit | b12d4316cc5ddd7f540304420a9cd63ed424173e (patch) | |
tree | d757ba7d5afc93ae3f0a22fbd0cc401f52e067b9 /docs | |
parent | 7ae247f03c639d6e704159df7f0120466afc3c30 (diff) | |
parent | 285717de33c25422db60420030d46d10cf3b0121 (diff) |
Merge #4682
4682: Rename assist r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/generated_assists.adoc | 58 |
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 | |||
344 | Change an anonymous lifetime to a named lifetime. | ||
345 | |||
346 | .Before | ||
347 | ```rust | ||
348 | impl 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 | ||
359 | impl<'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 | |||
544 | Change an anonymous lifetime to a named lifetime. | ||
545 | |||
546 | .Before | ||
547 | ```rust | ||
548 | impl 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 | ||
559 | impl<'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 | ||