From ff77c5e68fefcf525c2aa449cff5e0c52e7d3a0d Mon Sep 17 00:00:00 2001 From: Vladyslav Katasonov Date: Thu, 4 Feb 2021 00:52:53 +0300 Subject: remove ignored test for downgrading mut to shared --- crates/assists/src/handlers/extract_function.rs | 30 ------------------------- 1 file changed, 30 deletions(-) (limited to 'crates/assists') diff --git a/crates/assists/src/handlers/extract_function.rs b/crates/assists/src/handlers/extract_function.rs index 8a4073886..dce7ffd7b 100644 --- a/crates/assists/src/handlers/extract_function.rs +++ b/crates/assists/src/handlers/extract_function.rs @@ -1240,36 +1240,6 @@ impl S { ); } - // it is unclear if this is wanted behaviour - // and how this behavour can be implemented - #[ignore] - #[test] - fn method_with_mut_downgrade_to_shared() { - check_assist( - extract_function, - r" -struct S { f: i32 }; - -impl S { - fn foo(&mut self) -> i32 { - $01+self.f$0 - } -}", - r" -struct S { f: i32 }; - -impl S { - fn foo(&mut self) -> i32 { - self.fun_name() - } - - fn $0fun_name(&self) -> i32 { - 1+self.f - } -}", - ); - } - #[test] fn variable_defined_inside_and_used_after_no_ret() { check_assist( -- cgit v1.2.3