Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_completion/src/render/pattern.rs')
-rw-r--r--crates/ide_completion/src/render/pattern.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ide_completion/src/render/pattern.rs b/crates/ide_completion/src/render/pattern.rs
index e553ec8f86..888a5b4b0a 100644
--- a/crates/ide_completion/src/render/pattern.rs
+++ b/crates/ide_completion/src/render/pattern.rs
@@ -86,7 +86,11 @@ fn render_pat(
if matches!(
ctx.completion.pattern_ctx,
- Some(PatternContext { is_param: Some(ParamKind::Function), .. })
+ Some(PatternContext {
+ is_param: Some(ParamKind::Function),
+ has_type_ascription: false,
+ ..
+ })
) {
pat.push(':');
pat.push(' ');