fix: complete path of existing record expr

This commit is contained in:
cynecx 2022-07-29 02:27:16 +02:00
parent ec3586eab9
commit 902fd6ddcd
3 changed files with 22 additions and 1 deletions

View file

@ -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![::]);