Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/variant.rs')
-rw-r--r--crates/ide-completion/src/render/variant.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-completion/src/render/variant.rs b/crates/ide-completion/src/render/variant.rs
index f86af6cdcb..8d1b885969 100644
--- a/crates/ide-completion/src/render/variant.rs
+++ b/crates/ide-completion/src/render/variant.rs
@@ -32,7 +32,7 @@ pub(crate) fn render_record_lit(
if let Some(local) = ctx.locals.get(&field_name)
&& local
.ty(ctx.db)
- .could_unify_with_deeply(ctx.db, &field.ty(ctx.db).to_type(ctx.db))
+ .could_unify_with_deeply(ctx.db, &ctx.rebase_ty(&field.ty(ctx.db)))
{
f(&format_args!("{}{tab}", field_name.display(ctx.db, ctx.edition)))
} else {