diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/assists/src/handlers/extract_function.rs | 30 |
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" | ||
1251 | struct S { f: i32 }; | ||
1252 | |||
1253 | impl S { | ||
1254 | fn foo(&mut self) -> i32 { | ||
1255 | $01+self.f$0 | ||
1256 | } | ||
1257 | }", | ||
1258 | r" | ||
1259 | struct S { f: i32 }; | ||
1260 | |||
1261 | impl 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( |