We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3931e55 commit f87ad8dCopy full SHA for f87ad8d
crates/hir-ty/src/infer.rs
@@ -68,6 +68,7 @@ pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc<Infer
68
DefWithBodyId::FunctionId(f) => ctx.collect_fn(f),
69
DefWithBodyId::StaticId(s) => ctx.collect_static(&db.static_data(s)),
70
DefWithBodyId::VariantId(v) => {
71
+ // FIXME: This should return the `repr(...)` type of the enum
72
ctx.return_ty = TyBuilder::def_ty(db, v.parent.into()).fill_with_unknown().build()
73
}
74
0 commit comments