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
The rule,
> If pattern matching requires inspecting a discriminant, the relevant
> place will get captured by `ImmBorrow`.
is unclear in two ways. For one, when does pattern matching "require
inspecting" the discriminant? Second, what is the "relevant" place?
Let's break this up into two rules (and add rule identifiers). The
first rule will state that reading the discriminant captures the place
containing the discriminant (by `ImmBorrow`). The second rule will
state explicitly the baseline rule for when such reads happen.
0 commit comments