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
"Closures will capture individual fields and not the whole struct when possible"
This prevents taking a mutable/immutable reference to any other field of State when an array is being used in a parallel section. This is resolved by either creating temporary variables and assigning to the fields after the closure has completed, or by not parallelising at all. Once this issue is closed however these sections can be improved.
The text was updated successfully, but these errors were encountered:
Tracking issue: rust-lang/rust#53488
"Closures will capture individual fields and not the whole struct when possible"
This prevents taking a mutable/immutable reference to any other field of
State
when an array is being used in a parallel section. This is resolved by either creating temporary variables and assigning to the fields after the closure has completed, or by not parallelising at all. Once this issue is closed however these sections can be improved.The text was updated successfully, but these errors were encountered: