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
Better diagnose error coming from unwrapping optional before initialized.
Added a check for whether the escape use is due to an
UncheckedTakeEnumDataAddrInst, which accesses the memory to grab the
.Some part of an Optional during “?.” or “!”. In that case, use the
generic used-before-initialized diagnostic, since it isn’t actually
because of closure capture.
Added test cases, including specifically testing that capturing in a
closure in order to unwrap the optional is still ok.
0 commit comments