File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,9 +185,9 @@ Exhaustive list of permitted structures in const functions:
185
185
* Reading from constants (but not statics, not even taking a reference to a static)
186
186
* ` & ` and ` * ` (only dereferencing of references, not raw pointers)
187
187
* 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.
191
191
192
192
## Attributes on functions
193
193
You can’t perform that action at this time.
0 commit comments