summaryrefslogtreecommitdiffstats
path: root/src/librustc_mir/interpret/step.rs
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-01-30 11:18:37 +0100
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-03-08 08:34:15 +0100
commit65ed591197cdb6e17f505a0b2d8c38d730491c98 (patch)
tree519d29e4880d7848b884e32dfdffbb0648718db2 /src/librustc_mir/interpret/step.rs
parentFigure out const propgatable locals in a single pass (diff)
downloadgrust-65ed591197cdb6e17f505a0b2d8c38d730491c98.tar.gz
grust-65ed591197cdb6e17f505a0b2d8c38d730491c98.tar.bz2
grust-65ed591197cdb6e17f505a0b2d8c38d730491c98.tar.xz
Move the resource limits to the session in preparation for attributes configuring them
Diffstat (limited to 'src/librustc_mir/interpret/step.rs')
-rw-r--r--src/librustc_mir/interpret/step.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/step.rs b/src/librustc_mir/interpret/step.rs
index 21e81ff668..94fe3d1c67 100644
--- a/src/librustc_mir/interpret/step.rs
+++ b/src/librustc_mir/interpret/step.rs
@@ -8,7 +8,7 @@ use rustc::mir::interpret::EvalResult;
8use super::{EvalContext, Machine}; 8use super::{EvalContext, Machine};
9 9
10impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> { 10impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
11 pub fn inc_step_counter_and_check_limit(&mut self, n: u64) -> EvalResult<'tcx> { 11 pub fn inc_step_counter_and_check_limit(&mut self, n: usize) -> EvalResult<'tcx> {
12 self.steps_remaining = self.steps_remaining.saturating_sub(n); 12 self.steps_remaining = self.steps_remaining.saturating_sub(n);
13 if self.steps_remaining > 0 { 13 if self.steps_remaining > 0 {
14 Ok(()) 14 Ok(())