diff options
author | Edwin Cheng <[email protected]> | 2020-03-25 12:14:22 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-03-25 12:14:22 +0000 |
commit | 2adc9a8d5f8f7686a125a478330c67a2d46fba98 (patch) | |
tree | 5d41d254dc94ff7d8d20063a08df2b9b133d34d9 /crates/ra_hir_ty/src/tests | |
parent | 5bd3aa05d6963a633a1b5cea8187500657847b21 (diff) |
Remove collect proc_macro definitions
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)); |