Remove collect proc_macro definitions

This commit is contained in:
Edwin Cheng 2020-03-25 20:14:22 +08:00
parent 5bd3aa05d6
commit 2adc9a8d5f
2 changed files with 25 additions and 29 deletions

View file

@ -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));