Don't complete attributes with existing expressions

This commit is contained in:
Lukas Wirth 2022-01-11 19:03:21 +01:00
parent a3393c9a57
commit 51419c1931
2 changed files with 14 additions and 0 deletions

View file

@ -40,6 +40,19 @@ struct Foo;
)
}
#[test]
fn proc_macros_on_comment() {
check(
r#"
//- proc_macros: identity
/// $0
#[proc_macros::identity]
struct Foo;
"#,
expect![[r#""#]],
)
}
#[test]
fn proc_macros_qualified() {
check(