aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/doc_tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-19 11:44:20 +0000
committerAleksey Kladov <[email protected]>2020-02-19 11:44:54 +0000
commit312a7796105ae33f8f73e77291c0c4d46f6202d5 (patch)
treeba0dd37991220be14187f03b066c6490776eb6df /crates/ra_assists/src/doc_tests
parentd07f043ef1c99491cb172f3c3474b31c97501d7a (diff)
Add `remove_mut` assist
Diffstat (limited to 'crates/ra_assists/src/doc_tests')
-rw-r--r--crates/ra_assists/src/doc_tests/generated.rs17
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]
552fn doctest_remove_mut() {
553 check(
554 "remove_mut",
555 r#####"
556impl Walrus {
557 fn feed(&mut<|> self, amount: u32) {}
558}
559"#####,
560 r#####"
561impl Walrus {
562 fn feed(&self, amount: u32) {}
563}
564"#####,
565 )
566}
567
568#[test]
552fn doctest_replace_if_let_with_match() { 569fn doctest_replace_if_let_with_match() {
553 check( 570 check(
554 "replace_if_let_with_match", 571 "replace_if_let_with_match",