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 12, 2024
1 parent 8b01b71 commit e8c43a6
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 restrictions and observations.
* In particular, reads and writes to `static mut` are not allowed.
* Reads out of and writes into a `static` with data equipped with interior mutability are not allowed.
* Reads out of and writes into [`extern` statics] are not allowed.
* [Tuple expressions].
* [Array expressions].
* [Struct] expressions.
Expand Down

0 comments on commit e8c43a6

Please sign in to comment.