summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-29 04:11:27 +0000
committerbors <bors@rust-lang.org>2023-01-29 04:11:27 +0000
commitba7bb62e25637d9087a434ae1883d218c0c2da22 (patch)
treef590cb7655391956a282058c8e1e89336a1f3d1a /tests/rustdoc-js-std/parser-errors.js
parent7ef46c8babb87382b4bff97a0536a32d70c4db32 (diff)
parent706d7ff108947704566dbdc361abcb2ecddcef01 (diff)
downloadrust-ba7bb62e25637d9087a434ae1883d218c0c2da22.tar.gz
Auto merge of #106227 - bryangarza:ctfe-limit, r=oli-obk
Use stable metric for const eval limit instead of current terminator-based logic This patch adds a `MirPass` that inserts a new MIR instruction `ConstEvalCounter` to any loops and function calls in the CFG. This instruction is used during Const Eval to count against the `const_eval_limit`, and emit the `StepLimitReached` error, replacing the current logic which uses Terminators only. The new method of counting loops and function calls should be more stable across compiler versions (i.e., not cause crates that compiled successfully before, to no longer compile when changes to the MIR generation/optimization are made). Also see: #103877
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions