Fix rebase fallout
This commit is contained in:
parent
aaffe12453
commit
12a4c2ca18
2 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue