This commit is contained in:
Lukas Wirth 2021-07-20 19:00:52 +02:00
parent 33972da625
commit c83e37c001
3 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,7 @@ pub(crate) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte
if let Some(ImmediateLocation::Visibility(vis)) = &ctx.completion_location {
if vis.in_token().is_none() {
cov_mark::hit!(kw_completion_in);
add_keyword("in", "in");
}
return;

View file

@ -10,6 +10,7 @@ fn check(ra_fixture: &str, expect: Expect) {
#[test]
fn empty_pub() {
cov_mark::check!(kw_completion_in);
check(
r#"
pub($0)