Skip to content

Commit 053ddae

Browse files
authored
Merge pull request #70 from RalfJung/const
fix const: dynamic checks for accessing statics
2 parents bc36b6e + 8387e93 commit 053ddae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

const.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,5 @@ observing the fact that it has been "deduplicated"), this here is about using
128128
such a value at compile-time even though it might be changed at run-time.
129129

130130
*Dynamic check.* The Miri engine checks this dynamically by refusing to access
131-
global memory when computing a const.
131+
global mutable memory, and refusing to dereference any pointer to a static, when
132+
computing a const.

0 commit comments

Comments
 (0)