diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-12-23 17:13:50 +0100 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-12-26 22:50:18 +0100 |
| commit | 12a4c2ca18fc5392945099170d1f32d8f296b2a4 (patch) | |
| tree | 42c58519d72d54e578e2210fd6af536322ffc126 | |
| parent | aaffe12453bd98268fda8b5397eff7998ef2ea55 (diff) | |
| download | rust-12a4c2ca18fc5392945099170d1f32d8f296b2a4.tar.gz rust-12a4c2ca18fc5392945099170d1f32d8f296b2a4.zip | |
Fix rebase fallout
| -rw-r--r-- | src/librustc_mir/interpret/intrinsics.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir/interpret/operand.rs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/intrinsics.rs b/src/librustc_mir/interpret/intrinsics.rs index eb7657f780c..da7cff97ee2 100644 --- a/src/librustc_mir/interpret/intrinsics.rs +++ b/src/librustc_mir/interpret/intrinsics.rs @@ -5,7 +5,7 @@ use rustc::hir::def_id::DefId; use rustc::mir::{ self, - interpret::{ConstValue, InterpResult, Scalar}, + interpret::{ConstValue, GlobalId, InterpResult, Scalar}, BinOp, }; use rustc::ty; diff --git a/src/librustc_mir/interpret/operand.rs b/src/librustc_mir/interpret/operand.rs index e37aa69dfde..def979b63b5 100644 --- a/src/librustc_mir/interpret/operand.rs +++ b/src/librustc_mir/interpret/operand.rs @@ -588,6 +588,11 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { // `StaticKind` once and for all. return self.const_eval(GlobalId { instance, promoted: None }); } + ty::ConstKind::Infer(..) + | ty::ConstKind::Bound(..) + | ty::ConstKind::Placeholder(..) => { + bug!("eval_const_to_op: Unexpected ConstKind {:?}", val) + } ty::ConstKind::Value(val_val) => val_val, }; // Other cases need layout. |
