mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
fix: Don't duplicate attribute completions
This commit is contained in:
parent
f79f3db7b7
commit
d3e538638a
4 changed files with 13 additions and 23 deletions
|
@ -283,7 +283,11 @@ fn attr_on_type_alias() {
|
|||
#[test]
|
||||
fn attr_on_struct() {
|
||||
check(
|
||||
r#"#[$0] struct Foo;"#,
|
||||
r#"
|
||||
//- minicore:derive
|
||||
#[$0]
|
||||
struct Foo;
|
||||
"#,
|
||||
expect![[r#"
|
||||
at allow(…)
|
||||
at cfg(…)
|
||||
|
@ -303,6 +307,8 @@ fn attr_on_struct() {
|
|||
kw self
|
||||
kw super
|
||||
kw crate
|
||||
md core
|
||||
at derive pub macro derive
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue