Skip to content

Commit 92101eb

Browse files
committed
Fix after recent refactorings
1 parent de76c66 commit 92101eb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/librustc/infer/freshen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl<'a, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for TypeFreshener<'a, 'gcx, 'tcx> {
141141
ty::FreshTy)
142142
}
143143

144-
ty::TyInfer(ty::IntVar(v)) => {
144+
ty::Infer(ty::IntVar(v)) => {
145145
self.freshen(
146146
self.infcx.int_unification_table.borrow_mut()
147147
.probe_value(v)

src/librustc/mir/interpret/value.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![allow(unknown_lints)]
22

3+
use ty;
34
use ty::layout::{HasDataLayout, Size};
45
use ty::subst::Substs;
56
use hir::def_id::DefId;

src/librustc_mir/interpret/operand.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
470470

471471
// Also used e.g. when miri runs into a constant.
472472
// Unfortunately, this needs an `&mut` to be able to allocate a copy of a `ByRef`
473-
// constant. This bleeds up to `eval_operand` needing `&mut`.
473+
// constant. This bleeds up to `eval_operand` needing `&mut`.
474474
pub fn const_value_to_op(
475475
&mut self,
476476
val: ConstValue<'tcx>,
@@ -483,6 +483,8 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
483483
promoted: None,
484484
})
485485
}
486+
ConstValue::Param(_) => bug!(),
487+
ConstValue::Infer(_) => bug!(),
486488
ConstValue::ByRef(alloc, offset) => {
487489
// FIXME: Allocate new AllocId for all constants inside
488490
let id = self.memory.allocate_value(alloc.clone(), MemoryKind::Stack)?;

0 commit comments

Comments
 (0)