From f87ad8df055a53fff4f8b59922ccaf233211e334 Mon Sep 17 00:00:00 2001 From: OleStrohm Date: Mon, 19 Sep 2022 19:26:09 +0100 Subject: [PATCH] Added FIXME for the repr type of the enum --- crates/hir-ty/src/infer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/hir-ty/src/infer.rs b/crates/hir-ty/src/infer.rs index 285ec7520f40..7d1c98207586 100644 --- a/crates/hir-ty/src/infer.rs +++ b/crates/hir-ty/src/infer.rs @@ -68,6 +68,7 @@ pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc ctx.collect_fn(f), DefWithBodyId::StaticId(s) => ctx.collect_static(&db.static_data(s)), DefWithBodyId::VariantId(v) => { + // FIXME: This should return the `repr(...)` type of the enum ctx.return_ty = TyBuilder::def_ty(db, v.parent.into()).fill_with_unknown().build() } }