mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
internal: Lift out item list path completions from (un)qualified_path
This commit is contained in:
parent
52a58f672e
commit
25d133e3b8
13 changed files with 97 additions and 68 deletions
|
@ -394,6 +394,9 @@ fn foo() {
|
|||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
fn foo() fn()
|
||||
st Bar
|
||||
bt u32
|
||||
kw crate::
|
||||
kw self::
|
||||
kw super::
|
||||
|
@ -403,19 +406,18 @@ fn foo() {
|
|||
r#"
|
||||
struct Foo { bar: u32 }
|
||||
fn foo() {
|
||||
match Foo { bar: 0 } {
|
||||
match (Foo { bar: 0 }) {
|
||||
F$0 { bar } => {}
|
||||
}
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
fn foo() fn()
|
||||
fn foo() fn()
|
||||
st Foo
|
||||
bt u32
|
||||
kw crate
|
||||
kw return
|
||||
kw self
|
||||
kw super
|
||||
kw crate::
|
||||
kw self::
|
||||
kw super::
|
||||
"#]],
|
||||
);
|
||||
check_empty(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue