mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
fix: complete path of existing record expr
This commit is contained in:
parent
ec3586eab9
commit
902fd6ddcd
3 changed files with 22 additions and 1 deletions
|
@ -54,7 +54,7 @@ fn path_for_qualifier(
|
|||
mut qual: CompletedMarker,
|
||||
) -> CompletedMarker {
|
||||
loop {
|
||||
let use_tree = matches!(p.nth(2), T![*] | T!['{']);
|
||||
let use_tree = mode == Mode::Use && matches!(p.nth(2), T![*] | T!['{']);
|
||||
if p.at(T![::]) && !use_tree {
|
||||
let path = qual.precede(p);
|
||||
p.bump(T![::]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue