Skip to content

Commit f87ad8d

Browse files
committed
Added FIXME for the repr type of the enum
1 parent 3931e55 commit f87ad8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/hir-ty/src/infer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<Infer
6868
DefWithBodyId::FunctionId(f) => ctx.collect_fn(f),
6969
DefWithBodyId::StaticId(s) => ctx.collect_static(&db.static_data(s)),
7070
DefWithBodyId::VariantId(v) => {
71+
// FIXME: This should return the `repr(...)` type of the enum
7172
ctx.return_ty = TyBuilder::def_ty(db, v.parent.into()).fill_with_unknown().build()
7273
}
7374
}

0 commit comments

Comments
 (0)