Skip to content

Commit 4e9cb4c

Browse files
committed
loop detection is best-effort
1 parent df4e2fe commit 4e9cb4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

const_safety.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ four possible ways:
99
* The program causes undefined behavior (e.g., dereferencing an out-of-bounds
1010
pointer).
1111
* The program panics (e.g., a failed bounds check).
12-
* The program loops forever, and this is detected by the loop detector.
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.
1314

1415
Just like panics and non-termination are acceptable in safe run-time Rust code,
1516
we also consider these acceptable in safe compile-time Rust code. However, we

0 commit comments

Comments
 (0)