Skip to content

Commit 12a4c2c

Browse files
committed
Fix rebase fallout
1 parent aaffe12 commit 12a4c2c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/librustc_mir/interpret/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use rustc::hir::def_id::DefId;
66
use rustc::mir::{
77
self,
8-
interpret::{ConstValue, InterpResult, Scalar},
8+
interpret::{ConstValue, GlobalId, InterpResult, Scalar},
99
BinOp,
1010
};
1111
use rustc::ty;

src/librustc_mir/interpret/operand.rs

+5
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,11 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
588588
// `StaticKind` once and for all.
589589
return self.const_eval(GlobalId { instance, promoted: None });
590590
}
591+
ty::ConstKind::Infer(..)
592+
| ty::ConstKind::Bound(..)
593+
| ty::ConstKind::Placeholder(..) => {
594+
bug!("eval_const_to_op: Unexpected ConstKind {:?}", val)
595+
}
591596
ty::ConstKind::Value(val_val) => val_val,
592597
};
593598
// Other cases need layout.

0 commit comments

Comments
 (0)