Skip to content

Commit 6abb465

Browse files
committed
clarify that we are just describing compiler behavior
1 parent c05fc8a commit 6abb465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

const.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ On top of what applies to [statics](static.md), they are subject to an additiona
66
const CONST: T = EXPR;
77
```
88
is supposed to behave as-if `EXPR` was written at every use site of `CONST`.
9-
However, in reality `EXPR` is just computed once and the result is bit-wise copied each time `CONST` is used.
9+
However, in current versions of rustc, `EXPR` is just computed once and the result is bit-wise copied each time `CONST` is used.
1010
To make this work, we need to ensure [const safety](const_safety.md).
1111

1212
Based on this requirement, we allow other constants and [promoteds](promotion.md) to read from constants.

0 commit comments

Comments
 (0)