mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
fix: filter unnecessary completions after colon
This commit is contained in:
parent
45ec315e01
commit
f26d5484d8
5 changed files with 162 additions and 16 deletions
|
@ -607,6 +607,30 @@ fn attr_in_source_file_end() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn invalid_path() {
|
||||
check(
|
||||
r#"
|
||||
//- proc_macros: identity
|
||||
#[proc_macros:::$0]
|
||||
struct Foo;
|
||||
"#,
|
||||
expect![[r#""#]],
|
||||
);
|
||||
|
||||
check(
|
||||
r#"
|
||||
//- minicore: derive, copy
|
||||
mod foo {
|
||||
pub use Copy as Bar;
|
||||
}
|
||||
#[derive(foo:::::$0)]
|
||||
struct Foo;
|
||||
"#,
|
||||
expect![""],
|
||||
);
|
||||
}
|
||||
|
||||
mod cfg {
|
||||
use super::*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue