This commit is contained in:
Ralf Jung
2019-05-29 14:49:02 +02:00
parent 222ed9f571
commit 2ba7e776b6
+1 -1
View File
@@ -512,7 +512,7 @@ pub(super) fn eval_operands(
};
// 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 {