mozilla/rust — pull request #14681 by alexcrichton (2014-06-05 21:07:38+00:00)
Title: rustc: Avoid UB with signed division/remainder

Division and remainder by 0 are undefined behavior, and are detected at runtime.
This commit adds support for ensuring that MIN / -1 is also checked for at
runtime, as this would cause signed overflow, or undefined behvaior.

Closes #8460