diff options
Diffstat (limited to 'crates/ra_hir_ty/src/tests')
-rw-r--r-- | crates/ra_hir_ty/src/tests/macros.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_hir_ty/src/tests/macros.rs b/crates/ra_hir_ty/src/tests/macros.rs index e3b9fbac5..eb97288f1 100644 --- a/crates/ra_hir_ty/src/tests/macros.rs +++ b/crates/ra_hir_ty/src/tests/macros.rs | |||
@@ -642,9 +642,10 @@ mod clone { | |||
642 | 642 | ||
643 | #[test] | 643 | #[test] |
644 | fn infer_custom_derive_simple() { | 644 | fn infer_custom_derive_simple() { |
645 | // FIXME: this test current now do nothing | ||
645 | let (db, pos) = TestDB::with_position( | 646 | let (db, pos) = TestDB::with_position( |
646 | r#" | 647 | r#" |
647 | //- /main.rs crate:main deps:foo | 648 | //- /main.rs crate:main |
648 | use foo::Foo; | 649 | use foo::Foo; |
649 | 650 | ||
650 | #[derive(Foo)] | 651 | #[derive(Foo)] |
@@ -653,11 +654,6 @@ struct S{} | |||
653 | fn test() { | 654 | fn test() { |
654 | S{}<|>; | 655 | S{}<|>; |
655 | } | 656 | } |
656 | |||
657 | //- /lib.rs crate:foo | ||
658 | #[proc_macro_derive(Foo)] | ||
659 | pub fn derive_foo(_item: TokenStream) -> TokenStream { | ||
660 | } | ||
661 | "#, | 657 | "#, |
662 | ); | 658 | ); |
663 | assert_eq!("S", type_at_pos(&db, pos)); | 659 | assert_eq!("S", type_at_pos(&db, pos)); |