mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Remove collect proc_macro definitions
This commit is contained in:
parent
5bd3aa05d6
commit
2adc9a8d5f
2 changed files with 25 additions and 29 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue