Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7a568f7

Browse files
committed
fix: remove insufficient check for coloncolon
1 parent a6d0e34 commit 7a568f7

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

crates/ide-completion/src/context.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,6 @@ impl<'a> CompletionContext<'a> {
585585
return None;
586586
}
587587
}
588-
T![::] if !is_prev_token_valid_path_start_or_segment(&original_token) => {
589-
return None;
590-
}
591588
_ => {}
592589
}
593590

crates/ide-completion/src/tests/special.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -977,13 +977,6 @@ fn foo { crate:::$0 }
977977
check(
978978
r#"
979979
fn foo { crate::::$0 }
980-
"#,
981-
expect![""],
982-
);
983-
984-
check(
985-
r#"
986-
fn foo { crate:::::$0 }
987980
"#,
988981
expect![""],
989982
);

0 commit comments

Comments
 (0)