This commit is contained in:
Ralf Jung 2019-05-29 14:49:02 +02:00
parent 222ed9f571
commit 2ba7e776b6

View file

@ -512,7 +512,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tcx, M>
};
// Early-return cases.
match val.val {
ConstValue::Param(_) => return err!(TooGeneric),
ConstValue::Param(_) => return err!(TooGeneric), // FIXME(oli-obk): try to monomorphize
ConstValue::Unevaluated(def_id, substs) => {
let instance = self.resolve(def_id, substs)?;
return Ok(OpTy::from(self.const_eval_raw(GlobalId {