Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/cast.rs')
| -rw-r--r-- | crates/hir-ty/src/infer/cast.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer/cast.rs b/crates/hir-ty/src/infer/cast.rs index 1dade4dfd7..93aed344d4 100644 --- a/crates/hir-ty/src/infer/cast.rs +++ b/crates/hir-ty/src/infer/cast.rs @@ -542,7 +542,8 @@ fn pointer_kind<'db>( if let Some((last_field, _)) = struct_data.fields().iter().last() { let last_field_ty = ctx.db.field_types(id.into())[last_field] .get() - .instantiate(ctx.interner(), subst); + .instantiate(ctx.interner(), subst) + .skip_norm_wip(); pointer_kind(expr, last_field_ty, ctx) } else { Ok(Some(PointerKind::Thin)) |