File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ four possible ways:
9
9
* The program causes undefined behavior (e.g., dereferencing an out-of-bounds
10
10
pointer).
11
11
* The program panics (e.g., a failed bounds check).
12
- * The program loops forever, and this is detected by the loop detector. Note
13
- that this detection happens on a best-effort basis only.
12
+ * The program exhausts its resources: It might overflow the stack, allocation
13
+ too much memory or loops forever. Note that detecting these conditions
14
+ happens on a best-effort basis only.
14
15
15
16
Just like panics and non-termination are acceptable in safe run-time Rust code,
16
17
we also consider these acceptable in safe compile-time Rust code. However, we
Original file line number Diff line number Diff line change @@ -101,5 +101,5 @@ TODO: Fill this with information.
101
101
102
102
## Open questions
103
103
104
- * There is a fourth kind of CTFE failure -- and endless loop being detected.
105
- What do we do when that happens while evaluating a promoted?
104
+ * There is a fourth kind of CTFE failure -- resource exhaustion. What do we do
105
+ when that happens while evaluating a promoted?
You can’t perform that action at this time.
0 commit comments