Skip to content

Commit 18046c2

Browse files
authored
effects: improve :noub_if_noinbounds documentation (#56060)
Just a small touch-up
1 parent ecf41b1 commit 18046c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/compiler/effects.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ following meanings:
4747
* `ALWAYS_TRUE`: this method is guaranteed to not execute any undefined behavior (for any input).
4848
* `ALWAYS_FALSE`: this method may execute undefined behavior.
4949
* `NOUB_IF_NOINBOUNDS`: this method is guaranteed to not execute any undefined behavior
50-
if the caller does not set nor propagate the `@inbounds` context.
50+
under the assumption that its `@checkbounds` code is not elided (which happens when the
51+
caller does not set nor propagate the `@inbounds` context)
5152
Note that undefined behavior may technically cause the method to violate any other effect
5253
assertions (such as `:consistent` or `:effect_free`) as well, but we do not model this,
5354
and they assume the absence of undefined behavior.

0 commit comments

Comments
 (0)