Skip to content

Commit e511587

Browse files
authored
Update functions.md
1 parent 2a487bd commit e511587

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/items/functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ Exhaustive list of permitted structures in const functions:
185185
* Reading from constants (but not statics, not even taking a reference to a static)
186186
* `&` and `*` (only dereferencing of references, not raw pointers)
187187
* Casts except for raw pointer to integer casts
188-
* `const unsafe fn` is allowed, but the body must consist of safe operations
189-
only and you won't be able to call the `const unsafe fn` from within another
190-
const function even if you use `unsafe`
188+
* `unsafe` blocks and `const unsafe fn` is allowed, but the body/block must consist
189+
of safe operations or calls to other const functions only. Further unsafe operations
190+
may get allowed in const functions in the future.
191191

192192
## Attributes on functions
193193

0 commit comments

Comments
 (0)