Catch arith-overflow explicitly during `rustc::middle::const_eval`.
This only replaces the conditional arith-overflow asserts with unconditional errors from the guts of const-eval; it does *not* attempt to sanely handle such errors e.g. with a nice error message from `rustc`. So the same test that led me to add this commit are still failing, and must be addressed.
Showing
想要评论请 注册 或 登录