mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
cov-mark
This commit is contained in:
parent
33972da625
commit
c83e37c001
3 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue