Skip to content

Commit e10064b

Browse files
committed
Generalize const_report_error for all machines
1 parent 30b5bac commit e10064b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_const_eval/src/const_eval/eval_queries.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ use super::{CanAccessMutGlobal, CompileTimeEvalContext, CompileTimeInterpreter};
1616
use crate::const_eval::CheckAlignment;
1717
use crate::errors;
1818
use crate::errors::ConstEvalError;
19-
use crate::interpret::eval_nullary_intrinsic;
2019
use crate::interpret::{
2120
create_static_alloc, intern_const_alloc_recursive, CtfeValidationMode, GlobalId, Immediate,
2221
InternKind, InterpCx, InterpError, InterpResult, MPlaceTy, MemoryKind, OpTy, RefTracking,
2322
StackPopCleanup,
2423
};
24+
use crate::interpret::{eval_nullary_intrinsic, Machine};
2525

2626
// Returns a pointer to where the result lives
2727
#[instrument(level = "trace", skip(ecx, body), ret)]
@@ -434,7 +434,7 @@ pub fn const_validate_mplace<'mir, 'tcx>(
434434

435435
#[inline(always)]
436436
pub fn const_report_error<'mir, 'tcx>(
437-
ecx: &InterpCx<'mir, 'tcx, CompileTimeInterpreter<'mir, 'tcx>>,
437+
ecx: &InterpCx<'mir, 'tcx, impl Machine<'mir, 'tcx>>,
438438
error: InterpErrorInfo<'tcx>,
439439
alloc_id: AllocId,
440440
) -> ErrorHandled {

0 commit comments

Comments
 (0)