diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-03-22 12:49:58 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-03-22 13:06:33 -0700 |
| commit | b5636b8437feecc3474e607f60891f3ebc098ded (patch) | |
| tree | 8b96ff2785d32664d1fc7f2ff91e2b7ffd931069 /src/librustc | |
| parent | 044dc6e8dd435eb9c3b6f1dc0c85d0a6e70dae82 (diff) | |
| download | rust-b5636b8437feecc3474e607f60891f3ebc098ded.tar.gz rust-b5636b8437feecc3474e607f60891f3ebc098ded.zip | |
Rename `TimeLimitReached` -> `StepLimitReached`
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/mir/interpret/error.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc/mir/interpret/error.rs b/src/librustc/mir/interpret/error.rs index 4b1fad5d0b3..54d48e83d03 100644 --- a/src/librustc/mir/interpret/error.rs +++ b/src/librustc/mir/interpret/error.rs @@ -568,7 +568,7 @@ pub enum ResourceExhaustionInfo { /// The program ran for too long. /// /// The exact limit is set by the `const_eval_limit` attribute. - TimeLimitReached, + StepLimitReached, } impl fmt::Debug for ResourceExhaustionInfo { @@ -578,7 +578,9 @@ impl fmt::Debug for ResourceExhaustionInfo { StackFrameLimitReached => { write!(f, "reached the configured maximum number of stack frames") } - TimeLimitReached => write!(f, "exceeded interpreter time limit"), + StepLimitReached => { + write!(f, "exceeded interpreter step limit (see `#[const_eval_limit]`)") + } } } } |
