1
Fork 0

Implement fallback for effect param

This commit is contained in:
Deadbeef 2023-09-10 05:11:37 +00:00
parent b14b0745ad
commit 84a490712a
20 changed files with 390 additions and 72 deletions

View file

@ -365,6 +365,9 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for Canonicalizer<'_, 'tcx> {
// FIXME: we should fold this ty eventually
CanonicalVarKind::Const(ui, c.ty())
}
ty::ConstKind::Infer(ty::InferConst::EffectVar(_)) => {
bug!("effect var has no universe")
}
ty::ConstKind::Infer(ty::InferConst::Fresh(_)) => {
bug!("fresh var during canonicalization: {c:?}")
}