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
Plug soundness hole for reach capabilities (#20051)
~~To prevent that a reach capability is undermined by passing in a local
capability from the outside, we disallow function arguments where reach
capabilities appear in contravariant or invariant positions.~~
New scheme:
Enforce an analogous restriction to the one for creating reach
capabilities
for all values. The type of a value cannot both have a reach capability
with variance >= 0 and at the same time a universal capability with
variance <= 0.
0 commit comments