From 2adc9a8d5f8f7686a125a478330c67a2d46fba98 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Wed, 25 Mar 2020 20:14:22 +0800 Subject: Remove collect proc_macro definitions --- crates/ra_hir_ty/src/tests/macros.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crates/ra_hir_ty/src/tests') 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 { #[test] fn infer_custom_derive_simple() { + // FIXME: this test current now do nothing let (db, pos) = TestDB::with_position( r#" -//- /main.rs crate:main deps:foo +//- /main.rs crate:main use foo::Foo; #[derive(Foo)] @@ -653,11 +654,6 @@ struct S{} fn test() { S{}<|>; } - -//- /lib.rs crate:foo -#[proc_macro_derive(Foo)] -pub fn derive_foo(_item: TokenStream) -> TokenStream { -} "#, ); assert_eq!("S", type_at_pos(&db, pos)); -- cgit v1.2.3