Implement fallback for effect param
This commit is contained in:
parent
b14b0745ad
commit
84a490712a
20 changed files with 390 additions and 72 deletions
|
@ -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:?}")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue