Skip to content

Commit 1a7ce02

Browse files
committed
FIXME
1 parent b073599 commit 1a7ce02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/operand.rs

+1-1
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)