Skip to content

Commit

Permalink
apply suggestion on the use of statics in const-eval
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxiangfei2009 committed Oct 9, 2024
1 parent 8b01b71 commit 67f4754
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/const_eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ to be run.
* [Const parameters].
* [Paths] to [functions] and [constants].
Recursively defining constants is not allowed.
* Paths to immutable [statics].
* Reads of [`extern` statics] are not allowed.
* Reads from and writes to a `static` with interior mutability are not allowed.
* Paths to immutable [statics] with these exception with these restrictions.
* Reads out of and writes into [`extern` statics] are not allowed.
* Reads out of and writes into either a `static` with data equipped with interior mutability,
or a whole or parts of `static mut`, are not allowed.
* [Tuple expressions].
* [Array expressions].
* [Struct] expressions.
Expand Down

0 comments on commit 67f4754

Please sign in to comment.