fix: Don't duplicate attribute completions

This commit is contained in:
Lukas Wirth 2021-12-17 15:22:53 +01:00
parent f79f3db7b7
commit d3e538638a
4 changed files with 13 additions and 23 deletions

View file

@ -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
"#]],
);
}