You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: draft-rfcs/const-evaluatable-checked.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,5 @@ produce different results than what would happen on real hardware,
14
14
but this is not a concern for const generics.
15
15
16
16
Other sources of non-determinism are allocations. This non-determinism
17
-
must however not be observed during const-evaluation (TODO: link to const-eval)
18
-
and is only an issue if allocations leaked into the result. This
19
-
will be prevented by using [val-trees](https://github.com/rust-lang/rust/issues/72396).
17
+
must however not be observed during const-evaluation (TODO: link to const-eval).
18
+
Any references used in a constant are considered equal if their targets are equal, which is also determistic. (ref [val-trees](https://github.com/rust-lang/rust/issues/72396))
0 commit comments