aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/tests
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-03-25 12:14:22 +0000
committerEdwin Cheng <[email protected]>2020-03-25 12:14:22 +0000
commit2adc9a8d5f8f7686a125a478330c67a2d46fba98 (patch)
tree5d41d254dc94ff7d8d20063a08df2b9b133d34d9 /crates/ra_hir_ty/src/tests
parent5bd3aa05d6963a633a1b5cea8187500657847b21 (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.rs8
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]
644fn infer_custom_derive_simple() { 644fn 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
648use foo::Foo; 649use foo::Foo;
649 650
650#[derive(Foo)] 651#[derive(Foo)]
@@ -653,11 +654,6 @@ struct S{}
653fn test() { 654fn test() {
654 S{}<|>; 655 S{}<|>;
655} 656}
656
657//- /lib.rs crate:foo
658#[proc_macro_derive(Foo)]
659pub 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));