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
We have had a heuristic that lets you reflect fields of types that
are conditionally copyable, despite the reflection infrastructure
always copying the fields. This is really to allow types like
Optional in the stdlib continue to be reflected, despite having
been upgraded to support noncopyable types, because there are many
uses of that type with a Copyable payload.
As a consequence, we were also allowing reflection of user-defined
conditionally copyable types, when that's unsafe for no real benefit.
So, this patch limits the damage to only stdlib-defined types, until
Mirror and friends are updated.
0 commit comments