File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,14 @@ ecosystem that would break if we just started enforcing this now. See
80
80
[ this issue] ( https://github.com/rust-lang/rust/issues/49206 ) and the
81
81
[ PR attempting to fix this] ( https://github.com/rust-lang/rust/pull/54424/ ) .
82
82
83
- Also, one could make the argument that the value does not have to be ` Send `
84
- because it is not actually sent to other threads; instead, conceptually, each
85
- thread re-does the same computation. But we know they will all come to the same
83
+ One could make the argument that the value does not have to be ` Send ` because it
84
+ is not actually sent to other threads; instead, conceptually, each thread
85
+ re-does the same computation. But we know they will all come to the same
86
86
result. This works, except when we consider address identity: with references
87
87
in the ` const ` , all threads will get the same address, unlike in case of a
88
- per-thread recomputation which would lead to different addresses.
88
+ per-thread recomputation which would lead to different addresses. As a
89
+ consequence, non-` Send ` ` const ` without references are fine, but once references
90
+ and thus address identity comes into play, we have a problem.
89
91
90
92
* Dynamic check.* It is unclear how the Miri engine could dynamically check this.
91
93
You can’t perform that action at this time.
0 commit comments