> Functions that require some amount of optimization to prove that they do not panic may no longer compile in debug mode after being marked #[no_panic].
So you’re probably going to have to protect this with a cfg_attr to only apply the no_panic in release only.
edit: There is https://github.com/dtolnay/no-panic