about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/ide-assists/src/handlers/inline_call.rs86
1 files changed, 0 insertions, 86 deletions
diff --git a/crates/ide-assists/src/handlers/inline_call.rs b/crates/ide-assists/src/handlers/inline_call.rs
index 0af4248eb62..11b22b65205 100644
--- a/crates/ide-assists/src/handlers/inline_call.rs
+++ b/crates/ide-assists/src/handlers/inline_call.rs
@@ -1795,90 +1795,4 @@ fn _hash2(self_: &u64, state: &mut u64) {
 "#,
         )
     }
-
-    #[test]
-    fn inline_call_with_reference_in_macro_generated_trait_impl() {
-        check_assist(
-            inline_call,
-            r#"
-trait Hash2 {
-    fn hash2<H: Hasher2>(&self, state: &mut H);
-}
-
-trait Hasher2 {
-    fn write2_u64(&mut self, x: u64);
-}
-impl Hasher2 for u64 {
-    fn write2_u64(&mut self, x: u64) {
-        *self += x;
-    }
-}
-
-macro_rules! impl_write {
-    ($(($ty:ident, $meth:ident),)*) => {$(
-        impl Hash2 for $ty {
-            #[inline]
-            fn hash2<H: Hasher2>(&self, state: &mut H) {
-                state.$meth(*self)
-            }
-        }
-    )*}
-}
-
-impl_write! { (u64, write2_u64), }
-
-pub struct MyStruct {
-    value: u64,
-}
-
-impl Hash2 for MyStruct {
-    fn hash2<H: Hasher2>(&self, state: &mut H) {
-        self.value.$0hash2(state)
-    }
-}
-"#,
-            //
-            r#"
-trait Hash2 {
-    fn hash2<H: Hasher2>(&self, state: &mut H);
-}
-
-trait Hasher2 {
-    fn write2_u64(&mut self, x: u64);
-}
-impl Hasher2 for u64 {
-    fn write2_u64(&mut self, x: u64) {
-        *self += x;
-    }
-}
-
-macro_rules! impl_write {
-    ($(($ty:ident, $meth:ident),)*) => {$(
-        impl Hash2 for $ty {
-            #[inline]
-            fn hash2<H: Hasher2>(&self, state: &mut H) {
-                state.$meth(*self)
-            }
-        }
-    )*}
-}
-
-impl_write! { (u64, write2_u64), }
-
-pub struct MyStruct {
-    value: u64,
-}
-
-impl Hash2 for MyStruct {
-    fn hash2<H: Hasher2>(&self, state: &mut H) {
-        {
-            let this = &self.value;
-            let state: &mut H = state;
-          state.write2_u64(*this)
-        }
-    }
-}
-"#,
-        )
-    }
 }