aboutsummaryrefslogtreecommitdiff
path: root/crates/assists
diff options
context:
space:
mode:
authorVladyslav Katasonov <[email protected]>2021-02-03 21:52:53 +0000
committerVladyslav Katasonov <[email protected]>2021-02-03 21:52:53 +0000
commitff77c5e68fefcf525c2aa449cff5e0c52e7d3a0d (patch)
tree15f27a3dd51a8f98b33a96876bb0b5e258efe7ee /crates/assists
parentc4f3669e70c6b7e4bafa03f41ad29a3de46f80ad (diff)
remove ignored test for downgrading mut to shared
Diffstat (limited to 'crates/assists')
-rw-r--r--crates/assists/src/handlers/extract_function.rs30
1 files changed, 0 insertions, 30 deletions
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 {
1240 ); 1240 );
1241 } 1241 }
1242 1242
1243 // it is unclear if this is wanted behaviour
1244 // and how this behavour can be implemented
1245 #[ignore]
1246 #[test]
1247 fn method_with_mut_downgrade_to_shared() {
1248 check_assist(
1249 extract_function,
1250 r"
1251struct S { f: i32 };
1252
1253impl S {
1254 fn foo(&mut self) -> i32 {
1255 $01+self.f$0
1256 }
1257}",
1258 r"
1259struct S { f: i32 };
1260
1261impl S {
1262 fn foo(&mut self) -> i32 {
1263 self.fun_name()
1264 }
1265
1266 fn $0fun_name(&self) -> i32 {
1267 1+self.f
1268 }
1269}",
1270 );
1271 }
1272
1273 #[test] 1243 #[test]
1274 fn variable_defined_inside_and_used_after_no_ret() { 1244 fn variable_defined_inside_and_used_after_no_ret() {
1275 check_assist( 1245 check_assist(