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
I expected to see this happen: This includes a machine-applicable fix to migrate to 2021.
Instead, this happened: The suggestion is MaybeIncorrect preventing automatic migration.
Part of the problem is that there isn't an easy way to convert this to panic_any. For example, it could convert to:
fnf(){if !(expr){::std::panic::panic_any(123);}}
which is pretty awful and probably has other downsides. Trying to format with {:?} is also probably not a reliable option, since it would require the payload to impl Debug, and the user's code may be relying on catching the panic and inspecting the payload.