mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
fix: do not complete builtin attributes for qualified paths
This commit is contained in:
parent
1ef4b2cb7b
commit
845904f0bb
2 changed files with 17 additions and 1 deletions
|
@ -33,6 +33,18 @@ use self as this;
|
|||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn doesnt_complete_qualified() {
|
||||
check(
|
||||
r#"
|
||||
struct Foo;
|
||||
#[foo::$0]
|
||||
use self as this;
|
||||
"#,
|
||||
expect![[r#""#]],
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn inside_nested_attr() {
|
||||
check(r#"#[cfg($0)]"#, expect![[]])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue