Skip to content

Commit 2ba7e77

Browse files
committed
FIXME
1 parent 222ed9f commit 2ba7e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/operand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tcx, M>
512512
};
513513
// Early-return cases.
514514
match val.val {
515-
ConstValue::Param(_) => return err!(TooGeneric),
515+
ConstValue::Param(_) => return err!(TooGeneric), // FIXME(oli-obk): try to monomorphize
516516
ConstValue::Unevaluated(def_id, substs) => {
517517
let instance = self.resolve(def_id, substs)?;
518518
return Ok(OpTy::from(self.const_eval_raw(GlobalId {

0 commit comments

Comments
 (0)