mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Don't offer qualified path completions for buitlin derives
This commit is contained in:
parent
a8b76b632c
commit
2abe19e46a
6 changed files with 42 additions and 82 deletions
|
@ -764,7 +764,7 @@ mod derive {
|
|||
#[derive(der$0)] struct Test;
|
||||
"#,
|
||||
expect![[r#"
|
||||
de DeriveIdentity (use proc_macros::DeriveIdentity)
|
||||
de DeriveIdentity (use proc_macros::DeriveIdentity) pub macro derive_identity
|
||||
"#]],
|
||||
);
|
||||
check_derive(
|
||||
|
@ -805,10 +805,7 @@ use proc_macros::DeriveIdentity;
|
|||
//- minicore: derive, copy, clone
|
||||
#[derive(proc_macros::$0)] struct Test;
|
||||
"#,
|
||||
expect![[r#"
|
||||
de Clone, Copy
|
||||
de Clone
|
||||
"#]],
|
||||
expect![[r#""#]],
|
||||
);
|
||||
check_derive(
|
||||
r#"
|
||||
|
@ -816,10 +813,7 @@ use proc_macros::DeriveIdentity;
|
|||
//- minicore: derive, copy, clone
|
||||
#[derive(proc_macros::C$0)] struct Test;
|
||||
"#,
|
||||
expect![[r#"
|
||||
de Clone, Copy
|
||||
de Clone
|
||||
"#]],
|
||||
expect![[r#""#]],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue