Skip to content

Commit e8c43a6

Browse files
apply suggestion on the use of statics in const-eval
1 parent 8b01b71 commit e8c43a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/const_eval.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ to be run.
2323
* [Const parameters].
2424
* [Paths] to [functions] and [constants].
2525
Recursively defining constants is not allowed.
26-
* Paths to immutable [statics].
27-
* Reads of [`extern` statics] are not allowed.
28-
* Reads from and writes to a `static` with interior mutability are not allowed.
26+
* Paths to immutable [statics] with these restrictions and observations.
27+
* In particular, reads and writes to `static mut` are not allowed.
28+
* Reads out of and writes into a `static` with data equipped with interior mutability are not allowed.
29+
* Reads out of and writes into [`extern` statics] are not allowed.
2930
* [Tuple expressions].
3031
* [Array expressions].
3132
* [Struct] expressions.

0 commit comments

Comments
 (0)