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
Note that [non_exhaustive] doesn't solve the unknown-discriminant-in-FFI case -- the crate that defines the enum is still allowed to exhaustively match on all the variants that exist (because it's the crate that owns the enum, so can update the match along with the new variant, if one is added) and thus it's still UB to put an unknown discriminant in an enum.
Passing mut enum across FFI boundaries causes UB in cases when ODBC driver returns value absent in enum. Details: https://users.rust-lang.org/t/undefined-behaviour-after-unsafe-enum-usage/15572
The text was updated successfully, but these errors were encountered: