mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
Merge #7306
7306: Less annoying `mod` completion r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
cd532e615a
@ -99,7 +99,7 @@ pub(crate) fn complete_expr_keyword(acc: &mut Completions, ctx: &CompletionConte
|
||||
add_keyword(ctx, acc, "else if", "else if $0 {}");
|
||||
}
|
||||
if (ctx.has_item_list_or_source_file_parent) || ctx.block_expr_parent {
|
||||
add_keyword(ctx, acc, "mod", "mod $0 {}");
|
||||
add_keyword(ctx, acc, "mod", "mod $0");
|
||||
}
|
||||
if ctx.bind_pat_parent || ctx.ref_pat_parent {
|
||||
add_keyword(ctx, acc, "mut", "mut ");
|
||||
|
Loading…
Reference in New Issue
Block a user