diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-19 11:49:52 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-19 11:49:52 +0000 |
commit | 624a9978e25c7c6cee7fd88afd1559f1f143fe4e (patch) | |
tree | 56160520062feb9d9b55e49051060bd3b2248ec7 /crates/ra_assists/src/doc_tests | |
parent | eb804261dce7f13056566377148a41f460feed28 (diff) | |
parent | 312a7796105ae33f8f73e77291c0c4d46f6202d5 (diff) |
Merge #3231
3231: Add `remove_mut` assist r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/doc_tests')
-rw-r--r-- | crates/ra_assists/src/doc_tests/generated.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs index 4ab09b167..3f56dd508 100644 --- a/crates/ra_assists/src/doc_tests/generated.rs +++ b/crates/ra_assists/src/doc_tests/generated.rs | |||
@@ -549,6 +549,23 @@ fn main() { | |||
549 | } | 549 | } |
550 | 550 | ||
551 | #[test] | 551 | #[test] |
552 | fn doctest_remove_mut() { | ||
553 | check( | ||
554 | "remove_mut", | ||
555 | r#####" | ||
556 | impl Walrus { | ||
557 | fn feed(&mut<|> self, amount: u32) {} | ||
558 | } | ||
559 | "#####, | ||
560 | r#####" | ||
561 | impl Walrus { | ||
562 | fn feed(&self, amount: u32) {} | ||
563 | } | ||
564 | "#####, | ||
565 | ) | ||
566 | } | ||
567 | |||
568 | #[test] | ||
552 | fn doctest_replace_if_let_with_match() { | 569 | fn doctest_replace_if_let_with_match() { |
553 | check( | 570 | check( |
554 | "replace_if_let_with_match", | 571 | "replace_if_let_with_match", |